diff --git a/src/core/app.rs b/src/core/app.rs index fe44b18..7f2e1fc 100644 --- a/src/core/app.rs +++ b/src/core/app.rs @@ -86,7 +86,7 @@ impl<'window> App<'window> { let mut cumulative_dt = 0.0; let mut frames_accumulated = 0.0; let mut last_render_time = Instant::now(); - self.event_loop.run(|event, elwt| { + let _ = self.event_loop.run(|event, elwt| { match event { Event::WindowEvent { window_id, event } if window_id == self.render_ctx.window.id() => diff --git a/src/gfx/context.rs b/src/gfx/context.rs index 8d3eb20..a59244b 100644 --- a/src/gfx/context.rs +++ b/src/gfx/context.rs @@ -1,10 +1,7 @@ use std::sync::Arc; use winit::{ - dpi::PhysicalSize, - event::{Event, WindowEvent}, - event_loop::{ControlFlow, EventLoopWindowTarget}, - window::Window, + dpi::PhysicalSize, event::WindowEvent, event_loop::EventLoopWindowTarget, window::Window, }; pub struct Context<'window> { @@ -32,7 +29,7 @@ impl<'window> Context<'window> { // - A GPU device to draw to the surface // - A draw command queue log::info!("Initialising window surface..."); - let surface = unsafe { instance.create_surface(window.clone()) }.unwrap(); + let surface = instance.create_surface(window.clone()).unwrap(); log::info!("Requesting GPU adapter..."); let adapter = instance