switch to petgraph 0.8.1 now that my PR was merged and released to crates.io

This commit is contained in:
Jacob Lifshay 2025-04-09 20:48:40 -07:00
parent e2d2d4110b
commit 91e1b619e8
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ
3 changed files with 20 additions and 14 deletions

View file

@ -1022,6 +1022,16 @@ impl VisitMap<AssignmentOrSlotIndex> for AssignmentsVisitMap {
AssignmentOrSlotIndex::BigSlot(slot) => self.slots.contains(slot),
}
}
fn unvisit(&mut self, n: AssignmentOrSlotIndex) -> bool {
match n {
AssignmentOrSlotIndex::AssignmentIndex(assignment_index) => {
mem::replace(&mut self.assignments[assignment_index], false)
}
AssignmentOrSlotIndex::SmallSlot(slot) => self.slots.remove(slot),
AssignmentOrSlotIndex::BigSlot(slot) => self.slots.remove(slot),
}
}
}
impl Visitable for Assignments {