mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
clippy --fix fixes
This commit is contained in:
parent
9973d4b8d2
commit
4cd8f0a056
57 changed files with 366 additions and 374 deletions
4
crates/vendor/pathfinding/src/lib.rs
vendored
4
crates/vendor/pathfinding/src/lib.rs
vendored
|
@ -219,7 +219,7 @@ where
|
|||
})
|
||||
.collect();
|
||||
if prev_group.is_empty() {
|
||||
let remaining: Vec<N> = preds_map.into_iter().map(|(node, _)| node).collect();
|
||||
let remaining: Vec<N> = preds_map.into_keys().collect();
|
||||
return Err((Vec::new(), remaining));
|
||||
}
|
||||
for node in &prev_group {
|
||||
|
@ -241,7 +241,7 @@ where
|
|||
}
|
||||
groups.push(mem::replace(&mut prev_group, next_group));
|
||||
if prev_group.is_empty() {
|
||||
let remaining: Vec<N> = preds_map.into_iter().map(|(node, _)| node).collect();
|
||||
let remaining: Vec<N> = preds_map.into_keys().collect();
|
||||
return Err((groups, remaining));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue