Clippy fixes
This commit is contained in:
parent
ebef7fe1c5
commit
2dc20ad12c
6 changed files with 9 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue