cargo clippy --fix

main
Elijah Voigt 3 months ago
parent 86375aef0a
commit 6806e48242

@ -82,7 +82,7 @@ fn main() {
.run(); .run();
} }
fn tweak_camera(mut camera: Single<&mut Camera>) { fn tweak_camera(camera: Single<&mut Camera>) {
info!("Tweaking camera"); info!("Tweaking camera");
let mut c = camera.into_inner(); let mut c = camera.into_inner();
c.clear_color = ClearColorConfig::Custom(WHITE.into()); c.clear_color = ClearColorConfig::Custom(WHITE.into());
@ -504,10 +504,7 @@ fn pause_bird(
debug_assert!(!matches!(state.get(), PlayerState::Alive)); debug_assert!(!matches!(state.get(), PlayerState::Alive));
// Increment death count // Increment death count
match state.get() { if state.get() == &PlayerState::Stasis { deaths.0 += 1 }
PlayerState::Stasis => deaths.0 += 1,
_ => (),
}
debug!("Setting bird to Static"); debug!("Setting bird to Static");
**bird = RigidBody::Static; **bird = RigidBody::Static;

Loading…
Cancel
Save