mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
Web: remove unused CustomCursorError::Animation (#3794)
This commit is contained in:
@@ -80,3 +80,4 @@ changelog entry.
|
|||||||
|
|
||||||
This feature was incomplete, and the equivalent functionality can be trivially achieved outside
|
This feature was incomplete, and the equivalent functionality can be trivially achieved outside
|
||||||
of `winit` using `objc2-ui-kit` and calling `UIDevice::currentDevice().userInterfaceIdiom()`.
|
of `winit` using `objc2-ui-kit` and calling `UIDevice::currentDevice().userInterfaceIdiom()`.
|
||||||
|
- On Web, remove unused `platform::web::CustomCursorError::Animation`.
|
||||||
|
|||||||
@@ -423,7 +423,6 @@ impl Future for CustomCursorFuture {
|
|||||||
pub enum CustomCursorError {
|
pub enum CustomCursorError {
|
||||||
Blob,
|
Blob,
|
||||||
Decode(String),
|
Decode(String),
|
||||||
Animation,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Display for CustomCursorError {
|
impl Display for CustomCursorError {
|
||||||
@@ -431,9 +430,6 @@ impl Display for CustomCursorError {
|
|||||||
match self {
|
match self {
|
||||||
Self::Blob => write!(f, "failed to create `Blob`"),
|
Self::Blob => write!(f, "failed to create `Blob`"),
|
||||||
Self::Decode(error) => write!(f, "failed to decode image: {error}"),
|
Self::Decode(error) => write!(f, "failed to decode image: {error}"),
|
||||||
Self::Animation => {
|
|
||||||
write!(f, "found `CustomCursor` that is an animation when building an animation")
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user