From c1d04b978e6fc72e52e3eaf506fb3950fefa93b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 29 Nov 2020 17:10:12 +0100 Subject: [PATCH] Clean up --- src/window.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/window.rs b/src/window.rs index 90d5949..22ccb7b 100644 --- a/src/window.rs +++ b/src/window.rs @@ -21,7 +21,9 @@ impl AppRunner { } -pub struct WindowHandle(pub(crate) platform::WindowHandle); +pub struct WindowHandle( + pub(crate) platform::WindowHandle +); impl WindowHandle { @@ -71,15 +73,9 @@ mod assertions { impl WindowHandler for TestWindowHandler { type Message = (); - fn on_event(&mut self, _: &mut Window, _: Event) { - - } - fn on_message(&mut self, _: &mut Window, _: Self::Message) { - - } - fn on_frame(&mut self) { - - } + fn on_event(&mut self, _: &mut Window, _: Event) {} + fn on_message(&mut self, _: &mut Window, _: Self::Message) {} + fn on_frame(&mut self) {} } // Assert that WindowHandle is Send even if WindowHandler isn't