improve cycle detection in detect_list_cycles (#2111)

This commit is contained in:
Mark
2023-10-15 00:58:15 -06:00
parent 7875b96956
commit 3fb2e451a2
2 changed files with 11 additions and 2 deletions

View File

@@ -213,7 +213,7 @@ impl<'a> StacklessPreOrderHeapIter<'a, CycleDetectorUMP> {
}
if temp == self.start {
break;
return self.heap[temp].get_value() == self.current as u64;
}
}