Skip to content

Commit

Permalink
Remove unneeded Result
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Apr 5, 2024
1 parent f5c1a2e commit 0542a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ pub fn main_loop(
save_window_size(&window_wrapper);
window_target.exit();
} else {
window_target.set_control_flow(update_loop.step(&mut window_wrapper, e).unwrap());
window_target.set_control_flow(update_loop.step(&mut window_wrapper, e));
}
})
}
Expand Down
4 changes: 2 additions & 2 deletions src/window/update_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ impl UpdateLoop {
&mut self,
window_wrapper: &mut WinitWindowWrapper,
event: Event<UserEvent>,
) -> Result<ControlFlow, ()> {
) -> ControlFlow {
tracy_zone!("render loop", 0);
match event {
// Window focus changed
Expand Down Expand Up @@ -288,6 +288,6 @@ impl UpdateLoop {
#[cfg(feature = "profiling")]
self.should_render.plot_tracy();

Ok(ControlFlow::WaitUntil(self.get_event_deadline()))
ControlFlow::WaitUntil(self.get_event_deadline())
}
}

0 comments on commit 0542a10

Please sign in to comment.