diff options
author | 2023-11-29 22:37:54 +0100 | |
---|---|---|
committer | 2023-11-29 22:37:54 +0100 | |
commit | 7def3ee38a3f0f24a331d722b09f325fc9584625 (patch) | |
tree | f18ebac65a94c99db5f6b0d7413e63ed9298a54b /winit/src/multi_window.rs | |
parent | 9b34b2ac19a8fdd424581d160bc702e096a2b46a (diff) | |
download | iced-7def3ee38a3f0f24a331d722b09f325fc9584625.tar.gz iced-7def3ee38a3f0f24a331d722b09f325fc9584625.tar.bz2 iced-7def3ee38a3f0f24a331d722b09f325fc9584625.zip |
Fix `clippy` lints
Diffstat (limited to 'winit/src/multi_window.rs')
-rw-r--r-- | winit/src/multi_window.rs | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/winit/src/multi_window.rs b/winit/src/multi_window.rs index f2452eb3..b233564a 100644 --- a/winit/src/multi_window.rs +++ b/winit/src/multi_window.rs @@ -912,7 +912,7 @@ pub fn run_command<A, C, E>( size.width, size.height, )))) - .expect("Send message to event loop") + .expect("Send message to event loop"); } window::Action::Maximize(maximized) => { windows.with_raw(id).set_maximized(maximized); @@ -934,7 +934,9 @@ pub fn run_command<A, C, E>( )); } window::Action::ChangeIcon(icon) => { - windows.with_raw(id).set_window_icon(conversion::icon(icon)) + windows + .with_raw(id) + .set_window_icon(conversion::icon(icon)); } window::Action::FetchMode(tag) => { let window = windows.with_raw(id); @@ -969,12 +971,14 @@ pub fn run_command<A, C, E>( .with_raw(id) .set_window_level(conversion::window_level(level)); } - window::Action::FetchId(tag) => proxy - .send_event(Event::Application(tag(windows - .with_raw(id) - .id() - .into()))) - .expect("Event loop doesn't exist."), + window::Action::FetchId(tag) => { + proxy + .send_event(Event::Application(tag(windows + .with_raw(id) + .id() + .into()))) + .expect("Event loop doesn't exist."); + } window::Action::Screenshot(tag) => { let i = windows.index_from_id(id); let state = &windows.states[i]; @@ -996,7 +1000,7 @@ pub fn run_command<A, C, E>( state.physical_size(), ), ))) - .expect("Event loop doesn't exist.") + .expect("Event loop doesn't exist."); } }, command::Action::System(action) => match action { @@ -1014,7 +1018,7 @@ pub fn run_command<A, C, E>( proxy .send_event(Event::Application(message)) - .expect("Event loop doesn't exist.") + .expect("Event loop doesn't exist."); }); } } |