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:
Diggory Hardy authored and GitHub committed 2026-09-07 12:12:40 +02:00
1 parent 47337c0831
commit a98b2b217c
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -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.
///
-1
View File
@@ -248,7 +248,6 @@ impl App {
}
},
Ime::Disabled => info!("IME disabled for Window={:?}", surface.window().id()),
_ => (),
}
}