mirror of https://github.com/astral-sh/ruff
Fix nightly clippy warnings
This commit is contained in:
parent
3397737a76
commit
518cf728c3
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue