Tweak the control flow in process_obligations()
.
This commit is contained in:
parent
85a56cbd88
commit
7130e6c073
@ -404,10 +404,10 @@ impl<O: ForestObligation> ObligationForest<O> {
|
|||||||
// `self.active_cache`. This means that `self.active_cache` can get
|
// `self.active_cache`. This means that `self.active_cache` can get
|
||||||
// out of sync with `nodes`. It's not very common, but it does
|
// out of sync with `nodes`. It's not very common, but it does
|
||||||
// happen, and code in `compress` has to allow for it.
|
// happen, and code in `compress` has to allow for it.
|
||||||
let result = match node.state.get() {
|
if node.state.get() != NodeState::Pending {
|
||||||
NodeState::Pending => processor.process_obligation(&mut node.obligation),
|
continue;
|
||||||
_ => continue
|
}
|
||||||
};
|
let result = processor.process_obligation(&mut node.obligation);
|
||||||
|
|
||||||
debug!("process_obligations: node {} got result {:?}", index, result);
|
debug!("process_obligations: node {} got result {:?}", index, result);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user