Skip to content

Commit

Permalink
Fix lints for rust 1.75 (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierd authored Dec 30, 2023
1 parent 6fd2f29 commit e749965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guest/rust/api_core/src/animation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl AnimationPlayerRef {
}
fn root(&self) -> Option<AnimationNodeRef> {
if let Some(children) = entity::get_component(self.0, children()) {
children.get(0).copied().map(AnimationNodeRef)
children.first().copied().map(AnimationNodeRef)
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion guest/rust/packages/games/arkanoid/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub fn main() {
let players = entity::get_all(is_player());

// handle players' input
for (_i, player) in players.into_iter().enumerate() {
for player in players.into_iter() {
let Some(direction) = entity::get_component(player, player_movement_direction()) else {
continue;
};
Expand Down

0 comments on commit e749965

Please sign in to comment.