Placate clippy

This commit is contained in:
2023-12-25 00:23:43 +01:00
parent 0cce8a2045
commit 898f8dce25
4 changed files with 9 additions and 4 deletions

View File

@@ -77,7 +77,6 @@ fn simplify_graph(input: &[u8]) -> anyhow::Result<Vec<Vec<(Slope, usize, u32)>>>
while let Some((dist, slope, x, y)) = todo_positions.pop() {
let mut enqueue = |x: usize, y: usize, up, down| {
if map[(y, x)] == b'#' {
return;
} else if let Some(&other) = nodes.get(&(x, y)) {
if other == id {
return;