From db319f3af1f79d667545c1218777693eaea74d72 Mon Sep 17 00:00:00 2001 From: Danil Date: Wed, 11 Oct 2023 14:20:10 +0200 Subject: [PATCH] Move continue as the most frequent result to the top Signed-off-by: Danil --- core/lib/vm/src/tracers/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/vm/src/tracers/traits.rs b/core/lib/vm/src/tracers/traits.rs index 86ea70f2f64e..06e999865acf 100644 --- a/core/lib/vm/src/tracers/traits.rs +++ b/core/lib/vm/src/tracers/traits.rs @@ -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())) } @@ -98,7 +99,6 @@ impl TracerExecutionStatus { | (_, Self::Stop(TracerExecutionStopReason::Finish)) => { Self::Stop(TracerExecutionStopReason::Finish) } - _ => Self::Continue, } } }