fix unwrap errors

This commit is contained in:
Chance 2024-12-05 11:16:40 -05:00 committed by BitSyndicate
parent a25076c7a3
commit 5c1c8e6adf
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 443E4198D6BBA6DE
5 changed files with 17 additions and 13 deletions

View file

@ -6,7 +6,7 @@ use renderer::App;
use winit::event_loop::{ControlFlow, EventLoop};
pub fn init_renderer() -> Result<()> {
let event_loop = EventLoop::new().unwrap();
let event_loop = EventLoop::new()?;
event_loop.set_control_flow(ControlFlow::Poll);
let mut app = App::default();
Ok(event_loop.run_app(&mut app)?)