diff options
| author | 2025-02-02 17:50:12 +0100 | |
|---|---|---|
| committer | 2025-02-02 17:50:12 +0100 | |
| commit | 0c6d4eb23f07e0ab424dc22dd198924b8540192a (patch) | |
| tree | fa312df0a977b991a0eb2cc05f6515b5ace5310e /winit | |
| parent | 7db5256b720c3ecbe7c1cce7a1b47fd03151e03a (diff) | |
| download | iced-0c6d4eb23f07e0ab424dc22dd198924b8540192a.tar.gz iced-0c6d4eb23f07e0ab424dc22dd198924b8540192a.tar.bz2 iced-0c6d4eb23f07e0ab424dc22dd198924b8540192a.zip | |
Run `cargo fmt` and fix lints
Diffstat (limited to '')
| -rw-r--r-- | winit/src/program/state.rs | 6 | 
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 { | 
