From 42e61a3d661d4a1566641ee116c13b374ed1b19b Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Tue, 12 Aug 2025 20:49:32 -0700 Subject: [PATCH] Fix linter issues --- src/bin/flappy/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bin/flappy/main.rs b/src/bin/flappy/main.rs index 0e92933..d13fa1a 100644 --- a/src/bin/flappy/main.rs +++ b/src/bin/flappy/main.rs @@ -1,8 +1,7 @@ // Bevy basically forces "complex types" with Querys #![allow(clippy::type_complexity)] -use bevy::color::palettes::tailwind::FUCHSIA_950; -use bevy::render::view::{ColorGrading, ColorGradingGlobal}; +use bevy::render::view::ColorGrading; use games::physics2d::*; use games::*; use std::hash::BuildHasher; @@ -831,7 +830,6 @@ fn manage_score( /// This includes root batch entities as well as pipes and hitboxes fn move_batches( mut start: EventReader, - bird: Query>, hitboxes: Query>, batches: Query<(Entity, &Batch)>, state: Res>, @@ -901,7 +899,7 @@ fn debug_trail( mut positions: Local>>, ) { physics_objects.iter_mut().for_each(|(e, obj)| { - if let Some(mut list) = positions.get_mut(&e) { + if let Some(list) = positions.get_mut(&e) { list.push_front(obj.translation); if list.len() > 60 { list.pop_back();