From 6806e48242235a73a303c4abf891d8e15401bd95 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Mon, 4 Aug 2025 11:03:38 -0700 Subject: [PATCH] cargo clippy --fix --- src/bin/flappy/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bin/flappy/main.rs b/src/bin/flappy/main.rs index c7a3178..175e199 100644 --- a/src/bin/flappy/main.rs +++ b/src/bin/flappy/main.rs @@ -82,7 +82,7 @@ fn main() { .run(); } -fn tweak_camera(mut camera: Single<&mut Camera>) { +fn tweak_camera(camera: Single<&mut Camera>) { info!("Tweaking camera"); let mut c = camera.into_inner(); c.clear_color = ClearColorConfig::Custom(WHITE.into()); @@ -504,10 +504,7 @@ fn pause_bird( debug_assert!(!matches!(state.get(), PlayerState::Alive)); // Increment death count - match state.get() { - PlayerState::Stasis => deaths.0 += 1, - _ => (), - } + if state.get() == &PlayerState::Stasis { deaths.0 += 1 } debug!("Setting bird to Static"); **bird = RigidBody::Static;