Merge pull request #4223 from youknowone/nightly-clippy

Fix nightly clippy warnings
This commit is contained in:
Jeong YunWon 2022-10-17 13:28:53 +09:00 committed by GitHub
commit 2e33a3d0e9

View file

@ -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,