From 841978153a875678c850897585aee00c28028e5c Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sun, 6 Oct 2024 23:46:06 +0900 Subject: [PATCH] chore: do fmt --- sessionlockev/src/lib.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/sessionlockev/src/lib.rs b/sessionlockev/src/lib.rs index f31c18c..3ab470f 100644 --- a/sessionlockev/src/lib.rs +++ b/sessionlockev/src/lib.rs @@ -1040,15 +1040,11 @@ impl Dispatch for WindowStat _qhandle: &QueueHandle, ) { if let wp_fractional_scale_v1::Event::PreferredScale { scale } = event { - let Some(unit) = state - .units - .iter_mut() - .find(|info| { - info.fractional_scale - .as_ref() - .is_some_and(|fractional_scale| fractional_scale == proxy) - }) - else { + let Some(unit) = state.units.iter_mut().find(|info| { + info.fractional_scale + .as_ref() + .is_some_and(|fractional_scale| fractional_scale == proxy) + }) else { return; }; unit.scale = scale; @@ -1414,7 +1410,7 @@ impl WindowState { &DispatchMessage::RequestRefresh { width: unit.size.0, height: unit.size.1, - scale_float: unit.scale_float() + scale_float: unit.scale_float(), }, ), &mut self, @@ -1430,7 +1426,7 @@ impl WindowState { &DispatchMessage::RequestRefresh { width: unit.size.0, height: unit.size.1, - scale_float: unit.scale_float() + scale_float: unit.scale_float(), }, ), &mut self,