Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Jul 31, 2024
1 parent f39d8b9 commit 82c6503
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
Binary file removed assets/models/towerheadsm.glb
Binary file not shown.
1 change: 1 addition & 0 deletions src/enemy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub struct Enemy;
#[derive(Component)]
pub struct HitPoints {
pub current: u32,
#[allow(dead_code)]
pub max: u32,
}
impl HitPoints {
Expand Down
2 changes: 0 additions & 2 deletions src/loading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ pub struct Models {
pub item_spawner: Handle<Scene>,
#[asset(path = "models/tower.glb#Scene0")]
pub tower_base: Handle<Scene>,
#[asset(path = "models/towerheadsm.glb#Scene0")]
pub tower_head: Handle<Scene>,
#[asset(path = "models/towerkit.glb#Scene0")]
pub tower_kit: Handle<Scene>,
#[asset(path = "models/laserammo.glb#Scene0")]
Expand Down
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ItemSpawner {
let mut timer = Timer::new(Duration::from_secs_f32(secs), TimerMode::Once);

// make the first tick finish the timer
timer.set_elapsed(Duration::from_secs_f32(secs - std::f32::EPSILON));
timer.set_elapsed(Duration::from_secs_f32(secs - f32::EPSILON));

Self {
item,
Expand Down

0 comments on commit 82c6503

Please sign in to comment.