Change ContextCreationFailed to GraphicsCreationFailed
This commit is contained in:
parent
005e516b5e
commit
18ecec2bbd
3 changed files with 12 additions and 12 deletions
10
src/error.rs
10
src/error.rs
|
|
@ -11,9 +11,9 @@ pub enum Error {
|
|||
#[error("the application window could not be created")]
|
||||
WindowCreationFailed(Box<dyn std::error::Error + Send + Sync>),
|
||||
|
||||
/// The application context could not be created.
|
||||
#[error("the application context could not be created")]
|
||||
ContextCreationFailed(iced_graphics::Error),
|
||||
/// The application graphics context could not be created.
|
||||
#[error("the application graphics context could not be created")]
|
||||
GraphicsCreationFailed(iced_graphics::Error),
|
||||
}
|
||||
|
||||
impl From<iced_winit::Error> for Error {
|
||||
|
|
@ -25,8 +25,8 @@ impl From<iced_winit::Error> for Error {
|
|||
iced_winit::Error::WindowCreationFailed(error) => {
|
||||
Error::WindowCreationFailed(Box::new(error))
|
||||
}
|
||||
iced_winit::Error::ContextCreationFailed(error) => {
|
||||
Error::ContextCreationFailed(error)
|
||||
iced_winit::Error::GraphicsCreationFailed(error) => {
|
||||
Error::GraphicsCreationFailed(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue