cargo clippy --fix

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

@ -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;

Loading…
Cancel
Save