forked from libre-chip/fayalite
switch to petgraph 0.8.1 now that my PR was merged and released to crates.io
This commit is contained in:
parent
e2d2d4110b
commit
91e1b619e8
3 changed files with 20 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue