Fix unintentional exponential order ids

This commit is contained in:
2021-05-24 12:15:14 +02:00
parent 6ef9cb12f8
commit cca3cf7827

View File

@@ -49,7 +49,7 @@ where
let order = *self.ord.entry(n).or_insert_with(|| {
let order = *next_ord;
*next_ord += next_ord.checked_add(1).expect("Topological order overflow");
*next_ord = next_ord.checked_add(1).expect("Topological order overflow");
order
});