Skip to content

Commit

Permalink
ctf: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Aug 1, 2023
1 parent 3eaff91 commit e2aa2ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/ctf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fn build_flag(layer: &mut LayerBundle, team: Team, pos: impl Into<BlockPos>) ->
},
);

return pos;
pos
}

fn build_spawn_box(layer: &mut LayerBundle, pos: impl Into<BlockPos>, commands: &mut Commands) {
Expand Down Expand Up @@ -634,7 +634,7 @@ fn do_team_selector_portals(
layer: EntityLayerId(friendly_layer),
uuid: *unique_id,
entity_flags: flags,
position: pos.clone(),
position: *pos,
..Default::default()
});
player_glowing.insert(ClonedEntity(player));
Expand All @@ -643,7 +643,7 @@ fn do_team_selector_portals(
let mut player_enemy = commands.spawn(PlayerEntityBundle {
layer: EntityLayerId(enemy_layer),
uuid: *unique_id,
position: pos.clone(),
position: *pos,
..Default::default()
});
player_enemy.insert(ClonedEntity(player));
Expand Down Expand Up @@ -884,7 +884,7 @@ fn update_clones(
*clone.head_yaw = *src.head_yaw;
*clone.velocity = *src.velocity;
*clone.look = *src.look;
*clone.animations = src.animations.clone();
*clone.animations = *src.animations;
*clone.on_ground = *src.on_ground;
*clone.statuses = *src.statuses;
}
Expand Down

0 comments on commit e2aa2ae

Please sign in to comment.