mirror of
https://github.com/storytold/winit.git
synced 2026-11-22 12:20:44 +01:00
Remove #[non_exhaustive] on enum Ime (#4682)
Enum `Ime` should not be `#[non_exhaustive]` since ignoring variants could lead to a mis-match between in-application and external representation of text contents and thus bad behaviour.
This commit is contained in:
1 parent
47337c0831
commit
a98b2b217c
2 files changed
+1
-2
No files matched your search
@@ -1058,7 +1058,7 @@ impl From<ModifiersState> for Modifiers {
|
||||
/// ```
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[non_exhaustive]
|
||||
#[allow(clippy::exhaustive_enums)]
|
||||
pub enum Ime {
|
||||
/// Notifies when the IME was enabled.
|
||||
///
|
||||
|
||||
@@ -248,7 +248,6 @@ impl App {
|
||||
}
|
||||
},
|
||||
Ime::Disabled => info!("IME disabled for Window={:?}", surface.window().id()),
|
||||
_ => (),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user