Skip to content

Commit 815083d

Browse files
committed
Add #![deny(clippy::cast_possible_truncation)]
1 parent b432bb0 commit 815083d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/codegen/src/compile.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use num_complex::Complex64;
1818
use num_traits::ToPrimitive;
1919
use rustpython_ast as ast;
2020
use rustpython_compiler_core::{
21-
self as bytecode, Arg as OpArgMarker, CodeObject, ConstantData, Instruction, Location, NameIdx,
22-
OpArg, OpArgType,
21+
self as bytecode, Arg as OpArgMarker, CodeObject, ConstantData, Instruction, Location, OpArg,
22+
OpArgType,
2323
};
2424
use std::borrow::Cow;
2525

@@ -547,7 +547,7 @@ impl Compiler {
547547
NameUsage::Delete => Instruction::DeleteLocal,
548548
},
549549
};
550-
self.emit_arg(idx as NameIdx, op);
550+
self.emit_arg(idx.to_u32(), op);
551551

552552
Ok(())
553553
}

0 commit comments

Comments
 (0)