mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-30 23:27:39 +00:00
Add #![deny(clippy::cast_possible_truncation)]
This commit is contained in:
parent
0cd04ca2de
commit
7b84229db5
1 changed files with 3 additions and 3 deletions
|
@ -18,8 +18,8 @@ use num_complex::Complex64;
|
||||||
use num_traits::ToPrimitive;
|
use num_traits::ToPrimitive;
|
||||||
use rustpython_ast as ast;
|
use rustpython_ast as ast;
|
||||||
use rustpython_compiler_core::{
|
use rustpython_compiler_core::{
|
||||||
self as bytecode, Arg as OpArgMarker, CodeObject, ConstantData, Instruction, Location, NameIdx,
|
self as bytecode, Arg as OpArgMarker, CodeObject, ConstantData, Instruction, Location, OpArg,
|
||||||
OpArg, OpArgType,
|
OpArgType,
|
||||||
};
|
};
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
|
@ -547,7 +547,7 @@ impl Compiler {
|
||||||
NameUsage::Delete => Instruction::DeleteLocal,
|
NameUsage::Delete => Instruction::DeleteLocal,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
self.emit_arg(idx as NameIdx, op);
|
self.emit_arg(idx.to_u32(), op);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue