Clippy fixes

This commit is contained in:
Lauri Räsänen 2023-11-04 15:22:40 +02:00
parent ebef7fe1c5
commit 2dc20ad12c
6 changed files with 9 additions and 13 deletions

View file

@ -120,15 +120,14 @@ pub async fn run() {
fn lock_cursor(window: &winit::window::Window, lock: bool) {
if lock {
match window
if let Err(e) = window
.set_cursor_grab(if cfg!(target_arch = "wasm32") {
winit::window::CursorGrabMode::Locked
} else {
winit::window::CursorGrabMode::Confined
})
{
Err(e) => println!("Failed to grab cursor {e:?}"),
_ => ()
println!("Failed to grab cursor {e:?}")
}
window.set_cursor_visible(false);
} else {