fix clippy and check it on ci (#18)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user