main: allow clippy::needless_borrow since it isn't needless for web
This commit is contained in:
parent
3d1bea85fe
commit
47df12b5ee
|
@ -509,7 +509,8 @@ fn main2() {
|
||||||
glutin_window.resize(physical_size);
|
glutin_window.resize(physical_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if !handle_window_event(winit_window, &mut game, &mut ui_container, event) {
|
#[allow(clippy::needless_borrow)] // needless for native, not for web
|
||||||
|
if !handle_window_event(&winit_window, &mut game, &mut ui_container, event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue