summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-02 17:50:12 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-02 17:50:12 +0100
commit0c6d4eb23f07e0ab424dc22dd198924b8540192a (patch)
treefa312df0a977b991a0eb2cc05f6515b5ace5310e /winit
parent7db5256b720c3ecbe7c1cce7a1b47fd03151e03a (diff)
downloadiced-0c6d4eb23f07e0ab424dc22dd198924b8540192a.tar.gz
iced-0c6d4eb23f07e0ab424dc22dd198924b8540192a.tar.bz2
iced-0c6d4eb23f07e0ab424dc22dd198924b8540192a.zip
Run `cargo fmt` and fix lints
Diffstat (limited to 'winit')
-rw-r--r--winit/src/program/state.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/winit/src/program/state.rs b/winit/src/program/state.rs
index 2b5710ac..6361d1ba 100644
--- a/winit/src/program/state.rs
+++ b/winit/src/program/state.rs
@@ -186,10 +186,8 @@ where
WindowEvent::ModifiersChanged(new_modifiers) => {
self.modifiers = new_modifiers.state();
}
- WindowEvent::Ime(ime) => {
- if let Ime::Preedit(text, _) = ime {
- self.preedit = text.clone();
- }
+ WindowEvent::Ime(Ime::Preedit(text, _)) => {
+ self.preedit = text.clone();
}
#[cfg(feature = "debug")]
WindowEvent::KeyboardInput {