Skip to content

Commit

Permalink
Move continue as the most frequent result to the top
Browse files Browse the repository at this point in the history
Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo committed Oct 11, 2023
1 parent e65dc72 commit db319f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/vm/src/tracers/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ impl TracerExecutionStatus {
/// Otherwise, the result is Continue
pub fn stricter(&self, other: &Self) -> Self {
match (self, other) {
(Self::Continue, Self::Continue) => Self::Continue,
(Self::Stop(TracerExecutionStopReason::Abort(reason)), _) => {
Self::Stop(TracerExecutionStopReason::Abort(reason.clone()))
}
Expand All @@ -98,7 +99,6 @@ impl TracerExecutionStatus {
| (_, Self::Stop(TracerExecutionStopReason::Finish)) => {
Self::Stop(TracerExecutionStopReason::Finish)
}
_ => Self::Continue,
}
}
}

0 comments on commit db319f3

Please sign in to comment.