Skip to content

Commit

Permalink
chore: do fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 6, 2024
1 parent 0e29dc0 commit 8419781
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions sessionlockev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,15 +1040,11 @@ impl<T> Dispatch<wp_fractional_scale_v1::WpFractionalScaleV1, ()> for WindowStat
_qhandle: &QueueHandle<Self>,
) {
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;
Expand Down Expand Up @@ -1414,7 +1410,7 @@ impl<T: 'static> WindowState<T> {
&DispatchMessage::RequestRefresh {
width: unit.size.0,
height: unit.size.1,
scale_float: unit.scale_float()
scale_float: unit.scale_float(),
},
),
&mut self,
Expand All @@ -1430,7 +1426,7 @@ impl<T: 'static> WindowState<T> {
&DispatchMessage::RequestRefresh {
width: unit.size.0,
height: unit.size.1,
scale_float: unit.scale_float()
scale_float: unit.scale_float(),
},
),
&mut self,
Expand Down

0 comments on commit 8419781

Please sign in to comment.