Change Successors to impl Iterator<Item = BasicBlock>
This commit is contained in:
@@ -125,7 +125,7 @@ where
|
||||
}
|
||||
|
||||
fn target(&self, edge: &Self::Edge) -> Self::Node {
|
||||
self.body[edge.source].terminator().successors().nth(edge.index).copied().unwrap()
|
||||
self.body[edge.source].terminator().successors().nth(edge.index).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user