Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stillonearth committed Jul 4, 2023
1 parent 51b5630 commit 5afda5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ impl LdtkEntity for PlayerBundle {
..Default::default()
};

return PlayerBundle {
PlayerBundle {
animation_indices,
animation_timer: AnimationTimer(Timer::from_seconds(0.1, TimerMode::Repeating)),
sprite_bundle,
collider_bundle,
..default()
};
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn animate_sprite(
}
}

pub fn movement(input: Res<Input<KeyCode>>, mut query: Query<(&mut Velocity), With<Player>>) {
pub fn movement(input: Res<Input<KeyCode>>, mut query: Query<&mut Velocity, With<Player>>) {
for mut velocity in &mut query {
let right = if input.pressed(KeyCode::D) { 1. } else { 0. };
let left = if input.pressed(KeyCode::A) { 1. } else { 0. };
Expand Down

0 comments on commit 5afda5e

Please sign in to comment.