mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Add #![deny(clippy::cast_possible_truncation)]
This commit is contained in:
1 parent
b432bb0cf3
commit
815083d1e8
1 file changed
+3
-3
@@ -18,8 +18,8 @@ use num_complex::Complex64;
|
||||
use num_traits::ToPrimitive;
|
||||
use rustpython_ast as ast;
|
||||
use rustpython_compiler_core::{
|
||||
self as bytecode, Arg as OpArgMarker, CodeObject, ConstantData, Instruction, Location, NameIdx,
|
||||
OpArg, OpArgType,
|
||||
self as bytecode, Arg as OpArgMarker, CodeObject, ConstantData, Instruction, Location, OpArg,
|
||||
OpArgType,
|
||||
};
|
||||
use std::borrow::Cow;
|
||||
|
||||
@@ -547,7 +547,7 @@ impl Compiler {
|
||||
NameUsage::Delete => Instruction::DeleteLocal,
|
||||
},
|
||||
};
|
||||
self.emit_arg(idx as NameIdx, op);
|
||||
self.emit_arg(idx.to_u32(), op);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user