From 518cf728c393349b96c052515af8239924ff459b Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 16 Oct 2022 01:58:29 +0900 Subject: [PATCH] Fix nightly clippy warnings --- core/src/bytecode.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/core/src/bytecode.rs b/core/src/bytecode.rs index ae28f6ef02..9c3751cd1c 100644 --- a/core/src/bytecode.rs +++ b/core/src/bytecode.rs @@ -996,20 +996,8 @@ impl Instruction { | SetupFinally { .. } | EnterFinally | EndFinally => 0, - SetupExcept { .. } => { - if jump { - 1 - } else { - 0 - } - } - SetupWith { .. } => { - if jump { - 0 - } else { - 1 - } - } + SetupExcept { .. } => jump as i32, + SetupWith { .. } => (!jump) as i32, WithCleanupStart => 0, WithCleanupFinish => -1, PopBlock => 0,