Skip to content

Commit 518cf72

Browse files
committed
Fix nightly clippy warnings
1 parent 3397737 commit 518cf72

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

‎core/src/bytecode.rs‎

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -996,20 +996,8 @@ impl Instruction {
996996
| SetupFinally { .. }
997997
| EnterFinally
998998
| EndFinally => 0,
999-
SetupExcept { .. } => {
1000-
if jump {
1001-
1
1002-
} else {
1003-
0
1004-
}
1005-
}
1006-
SetupWith { .. } => {
1007-
if jump {
1008-
0
1009-
} else {
1010-
1
1011-
}
1012-
}
999+
SetupExcept { .. } => jump as i32,
1000+
SetupWith { .. } => (!jump) as i32,
10131001
WithCleanupStart => 0,
10141002
WithCleanupFinish => -1,
10151003
PopBlock => 0,

0 commit comments

Comments
 (0)