Skip to content

Commit

Permalink
Fix warnings by new compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
bofh69 committed Sep 7, 2023
1 parent 9c7a1ce commit aba8545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub(crate) fn show_main_menu(
"Welcome to ...",
);

for (y, line) in vec![
for (y, line) in [
"########...#######..##....##..######...########",
"##.....##.##.....##.##....##.##....##..##......",
"##.....##.##.....##.##....##.##........##......",
Expand Down
2 changes: 1 addition & 1 deletion src/systems/monster_ai_systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub(crate) fn monster_ai(

ready.sort_by_key(|(_, _, _, energy)| -energy.energy);

for (entity, mut viewshed, mut pos, mut energy) in ready {
for (entity, viewshed, pos, energy) in ready {
let distance =
DistanceAlg::Chebyshev.distance2d(Point::new(pos.0.x, pos.0.y), player_pos.into());
if distance < 1.5 {
Expand Down

0 comments on commit aba8545

Please sign in to comment.