fix clippy and check it on ci (#18)

This commit is contained in:
extrawurst
2025-03-26 01:20:38 +01:00
committed by GitHub
parent 17406b1f00
commit 9842148010
14 changed files with 85 additions and 53 deletions

View File

@@ -66,7 +66,7 @@ fn startup(mut commands: Commands) {
fn update_look_around(controls: Res<Controls>, mut cam_state: ResMut<CameraState>) {
let look_around =
controls.keyboard_state.view_mode || controls.gamepad_state.map_or(false, |g| g.view_mode);
controls.keyboard_state.view_mode || controls.gamepad_state.is_some_and(|g| g.view_mode);
if look_around != cam_state.look_around {
cam_state.look_around = look_around;