Add BREAK
too, and improve the comments
This commit is contained in:
parent
fac272688e
commit
59e37332b0
3 changed files with 44 additions and 8 deletions
|
@ -286,7 +286,7 @@ where
|
|||
prior_status: Option<NodeStatus>,
|
||||
) -> ControlFlow<Self::BreakVal> {
|
||||
match prior_status {
|
||||
Some(NodeStatus::Visited) => ControlFlow::Break(()),
|
||||
Some(NodeStatus::Visited) => ControlFlow::BREAK,
|
||||
_ => ControlFlow::CONTINUE,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue