Skip to content

Commit

Permalink
Don't refer to Event in an overly specific way
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 20, 2022
1 parent 70952bd commit 541150a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/fj-window/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ pub fn run(
});
}

fn input_event(
event: &Event<()>,
fn input_event<T>(
event: &Event<T>,
window: &Window,
held_mouse_button: &Option<MouseButton>,
previous_cursor: &mut Option<NormalizedScreenPosition>,
Expand Down
2 changes: 1 addition & 1 deletion crates/fj-window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self, Error> {
pub fn new<T>(event_loop: &EventLoop<T>) -> Result<Self, Error> {
let window = WindowBuilder::new()
.with_title("Fornjot")
.with_maximized(true)
Expand Down

0 comments on commit 541150a

Please sign in to comment.