improve cycle detection in detect_list_cycles (#2111)
This commit is contained in:
@@ -213,7 +213,7 @@ impl<'a> StacklessPreOrderHeapIter<'a, CycleDetectorUMP> {
|
||||
}
|
||||
|
||||
if temp == self.start {
|
||||
break;
|
||||
return self.heap[temp].get_value() == self.current as u64;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user