summaryrefslogtreecommitdiffstats
path: root/winit/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'winit/src/error.rs')
-rw-r--r--winit/src/error.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/winit/src/error.rs b/winit/src/error.rs
index 8e1d20e8..2dd045d2 100644
--- a/winit/src/error.rs
+++ b/winit/src/error.rs
@@ -11,17 +11,13 @@ pub enum Error {
#[error("the application window could not be created")]
WindowCreationFailed(winit::error::OsError),
- /// A suitable graphics adapter or device could not be found.
- #[error("a suitable graphics adapter or device could not be found")]
- GraphicsAdapterNotFound,
+ /// The application context could not be created.
+ #[error("the application context could not be created")]
+ ContextCreationFailed(iced_graphics::Error),
}
impl From<iced_graphics::Error> for Error {
fn from(error: iced_graphics::Error) -> Error {
- match error {
- iced_graphics::Error::AdapterNotFound => {
- Error::GraphicsAdapterNotFound
- }
- }
+ Error::ContextCreationFailed(error)
}
}