From 541150a716d5dfc5227368ecb60ab262f2463010 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 20 Oct 2022 13:26:04 +0200 Subject: [PATCH] Don't refer to `Event` in an overly specific way --- crates/fj-window/src/run.rs | 4 ++-- crates/fj-window/src/window.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/fj-window/src/run.rs b/crates/fj-window/src/run.rs index cdf8053e3..000fc9b67 100644 --- a/crates/fj-window/src/run.rs +++ b/crates/fj-window/src/run.rs @@ -200,8 +200,8 @@ pub fn run( }); } -fn input_event( - event: &Event<()>, +fn input_event( + event: &Event, window: &Window, held_mouse_button: &Option, previous_cursor: &mut Option, diff --git a/crates/fj-window/src/window.rs b/crates/fj-window/src/window.rs index db1c57a84..25d709d39 100644 --- a/crates/fj-window/src/window.rs +++ b/crates/fj-window/src/window.rs @@ -8,7 +8,7 @@ pub struct Window(winit::window::Window); impl Window { /// Returns a new window with the given `EventLoop`. - pub fn new(event_loop: &EventLoop<()>) -> Result { + pub fn new(event_loop: &EventLoop) -> Result { let window = WindowBuilder::new() .with_title("Fornjot") .with_maximized(true)