diff --git a/examples/open_window.rs b/examples/open_window.rs index e784425..911a039 100644 --- a/examples/open_window.rs +++ b/examples/open_window.rs @@ -15,7 +15,7 @@ impl WindowHandler for MyProgram { match event { Event::Mouse(e) => println!("Mouse event: {:?}", e), Event::Keyboard(e) => println!("Keyboard event: {:?}", e), - Event::Window(e) => println!("Window event: {:?}", e) + Event::Window(e) => println!("Window event: {:?}", e), } } diff --git a/src/event.rs b/src/event.rs index a888dd1..ef4f4c7 100644 --- a/src/event.rs +++ b/src/event.rs @@ -91,5 +91,5 @@ pub enum WindowEvent { pub enum Event { Mouse(MouseEvent), Keyboard(KeyboardEvent), - Window(WindowEvent) + Window(WindowEvent), } diff --git a/src/macos/window.rs b/src/macos/window.rs index 84020fa..6e718ba 100644 --- a/src/macos/window.rs +++ b/src/macos/window.rs @@ -11,8 +11,8 @@ use cocoa::foundation::{NSAutoreleasePool, NSPoint, NSRect, NSSize, NSString}; use raw_window_handle::{macos::MacOSHandle, HasRawWindowHandle, RawWindowHandle}; use crate::{ - Event, KeyboardEvent, MouseButton, MouseEvent, ScrollDelta, WindowEvent, - WindowHandler, WindowOpenOptions, + Event, KeyboardEvent, MouseButton, MouseEvent, ScrollDelta, WindowEvent, WindowHandler, + WindowOpenOptions, }; pub struct Window { diff --git a/src/win/window.rs b/src/win/window.rs index fe8a4ce..95de2f0 100644 --- a/src/win/window.rs +++ b/src/win/window.rs @@ -19,8 +19,8 @@ use std::rc::Rc; use raw_window_handle::{windows::WindowsHandle, HasRawWindowHandle, RawWindowHandle}; use crate::{ - Event, KeyboardEvent, MouseButton, MouseEvent, Parent::WithParent, ScrollDelta, - WindowEvent, WindowHandler, WindowInfo, WindowOpenOptions, + Event, KeyboardEvent, MouseButton, MouseEvent, Parent::WithParent, ScrollDelta, WindowEvent, + WindowHandler, WindowInfo, WindowOpenOptions, }; unsafe fn message_box(title: &str, msg: &str) { diff --git a/src/x11/window.rs b/src/x11/window.rs index de191f8..de4a24a 100644 --- a/src/x11/window.rs +++ b/src/x11/window.rs @@ -6,8 +6,8 @@ use raw_window_handle::{unix::XlibHandle, HasRawWindowHandle, RawWindowHandle}; use super::XcbConnection; use crate::{ - Event, KeyboardEvent, MouseButton, MouseEvent, Parent, ScrollDelta, WindowEvent, - WindowHandler, WindowOpenOptions, WindowInfo, + Event, KeyboardEvent, MouseButton, MouseEvent, Parent, ScrollDelta, WindowEvent, WindowHandler, + WindowInfo, WindowOpenOptions, }; pub struct Window {