Migrated to rust edition 2021
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user