state-res: Remove unnecessary .iter()
call
This commit is contained in:
parent
989c25a541
commit
c94f9d5c88
@ -274,7 +274,7 @@ where
|
||||
// Vec of nodes that have zero out degree, least recent events.
|
||||
let mut zero_outdegree = vec![];
|
||||
|
||||
for (node, edges) in graph.iter() {
|
||||
for (node, edges) in graph {
|
||||
if edges.is_empty() {
|
||||
// The `Reverse` is because rusts `BinaryHeap` sorts largest -> smallest we need
|
||||
// smallest -> largest
|
||||
|
Loading…
x
Reference in New Issue
Block a user