mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tsort: use Iterator.all
This commit is contained in:
parent
b24f91c4d6
commit
24319791ec
1 changed files with 1 additions and 6 deletions
|
@ -171,11 +171,6 @@ impl Graph {
|
|||
}
|
||||
|
||||
fn is_acyclic(&self) -> bool {
|
||||
for edges in self.out_edges.values() {
|
||||
if !edges.is_empty() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
true
|
||||
self.out_edges.values().all(|edge| edge.is_empty())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue