mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
clippy
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1948,7 +1948,7 @@ impl Compiler<'_> {
|
||||
// If no name is provided, simply pop the top of the stack.
|
||||
None => {
|
||||
emit!(self, Instruction::Pop);
|
||||
return Ok(());
|
||||
Ok(())
|
||||
}
|
||||
Some(name) => {
|
||||
// Check if the name is forbidden for storing.
|
||||
|
||||
@@ -244,7 +244,7 @@ impl CodeInfo {
|
||||
let instr_display = instr.display(display_arg, self);
|
||||
eprint!("{instr_display}: {depth} {effect:+} => ");
|
||||
}
|
||||
if effect < 0 && depth < effect.abs() as u32 {
|
||||
if effect < 0 && depth < effect.unsigned_abs() {
|
||||
panic!("The stack will underflow at {depth} with {effect} effect on {instr:?}");
|
||||
}
|
||||
let new_depth = depth.checked_add_signed(effect).unwrap();
|
||||
|
||||
Reference in new issue
Block a user