diff --git a/voxygen/src/hud/settings_window.rs b/voxygen/src/hud/settings_window.rs index 0cce7bc7db..0584dbdc99 100644 --- a/voxygen/src/hud/settings_window.rs +++ b/voxygen/src/hud/settings_window.rs @@ -902,7 +902,9 @@ impl<'a> Widget for SettingsWindow<'a> { .set(state.ids.mouse_zoom_invert_button, ui); if self.global_state.settings.gameplay.zoom_inversion != zoom_inverted { - events.push(Event::ToggleZoomInvert(!self.global_state.settings.gameplay.zoom_inversion)); + events.push(Event::ToggleZoomInvert( + !self.global_state.settings.gameplay.zoom_inversion, + )); } Text::new("Invert Scroll Zoom") diff --git a/voxygen/src/window.rs b/voxygen/src/window.rs index b468a157b3..8f74603abf 100644 --- a/voxygen/src/window.rs +++ b/voxygen/src/window.rs @@ -378,9 +378,9 @@ impl Window { glutin::DeviceEvent::MouseWheel { delta: glutin::MouseScrollDelta::LineDelta(_x, y), .. - } if cursor_grabbed && *focused => { - events.push(Event::Zoom(y * (zoom_sensitivity as f32 / 100.0) * zoom_inversion)) - } + } if cursor_grabbed && *focused => events.push(Event::Zoom( + y * (zoom_sensitivity as f32 / 100.0) * zoom_inversion, + )), _ => {} }, _ => {}