summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorLibravatar Richard <richardsoncusto@gmail.com>2022-04-26 19:28:04 -0300
committerLibravatar Richard <richardsoncusto@gmail.com>2022-04-27 15:42:55 -0300
commit18ecec2bbd9478151b8c65df0644278a174d0847 (patch)
tree2b6f459f4cc7b5c6514bf3adc9cbca7a68d4411f /src/error.rs
parent005e516b5e1e8bb22f2da8524ffe4529f3b60ba1 (diff)
downloadiced-18ecec2bbd9478151b8c65df0644278a174d0847.tar.gz
iced-18ecec2bbd9478151b8c65df0644278a174d0847.tar.bz2
iced-18ecec2bbd9478151b8c65df0644278a174d0847.zip
Change `ContextCreationFailed` to `GraphicsCreationFailed`
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/error.rs b/src/error.rs
index 83c9b1b6..0bfa3ff1 100644
--- a/src/error.rs
+++ b/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)
}
}
}