From 81f52db78be1ebd07f084e27847afd9038c337f4 Mon Sep 17 00:00:00 2001 From: Jan Sosulski Date: Wed, 3 Nov 2021 17:47:10 +0100 Subject: [PATCH] cargo fmt --- src/window/window_wrapper/keyboard_manager.rs | 8 ++++++-- src/window/window_wrapper/mod.rs | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/window/window_wrapper/keyboard_manager.rs b/src/window/window_wrapper/keyboard_manager.rs index f72e756..69b9ed3 100644 --- a/src/window/window_wrapper/keyboard_manager.rs +++ b/src/window/window_wrapper/keyboard_manager.rs @@ -1,6 +1,6 @@ -use glutin::{PossiblyCurrent, WindowedContext}; use glutin::event::{ElementState, Event, KeyEvent, WindowEvent}; use glutin::keyboard::Key; +use glutin::{PossiblyCurrent, WindowedContext}; use winit::platform::modifier_supplement::KeyEventExtModifierSupplement; @@ -32,7 +32,11 @@ impl KeyboardManager { } } - pub fn handle_event(&mut self, event: &Event<()>, windowed_context: &WindowedContext) { + pub fn handle_event( + &mut self, + event: &Event<()>, + windowed_context: &WindowedContext, + ) { match event { Event::WindowEvent { event: WindowEvent::Focused(_focused), diff --git a/src/window/window_wrapper/mod.rs b/src/window/window_wrapper/mod.rs index 810b65f..9249d93 100644 --- a/src/window/window_wrapper/mod.rs +++ b/src/window/window_wrapper/mod.rs @@ -120,7 +120,8 @@ impl GlutinWindowWrapper { } pub fn handle_event(&mut self, event: Event<()>) { - self.keyboard_manager.handle_event(&event, &self.windowed_context); + self.keyboard_manager + .handle_event(&event, &self.windowed_context); self.mouse_manager.handle_event( &event, &self.keyboard_manager,