Migrated to rust edition 2021

This commit is contained in:
2023-05-20 22:39:07 +02:00
parent b2a5da3222
commit ef2340eaae
3 changed files with 54 additions and 52 deletions

View File

@@ -154,7 +154,7 @@ impl Cave {
(position.0 as i32, position.1 as i32 - 1),
(position.0 as i32, position.1 as i32 + 1),
]
.into_iter()
.iter()
.filter_map(|(x, y)| {
if *x >= 0 && *y >= 0 {
Some(Node(*x as usize, *y as usize, position.2))