mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix clippy lints
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -625,14 +625,14 @@ impl<C: Constant> CodeObject<C> {
|
||||
instructions: self.instructions.clone(),
|
||||
label_map: self.label_map.clone(),
|
||||
locations: self.locations.clone(),
|
||||
flags: self.flags.clone(),
|
||||
posonlyarg_count: self.posonlyarg_count.clone(),
|
||||
flags: self.flags,
|
||||
posonlyarg_count: self.posonlyarg_count,
|
||||
arg_names: self.arg_names.clone(),
|
||||
varargs_name: self.varargs_name.clone(),
|
||||
kwonlyarg_names: self.kwonlyarg_names.clone(),
|
||||
varkeywords_name: self.varkeywords_name.clone(),
|
||||
source_path: self.source_path.clone(),
|
||||
first_line_number: self.first_line_number.clone(),
|
||||
first_line_number: self.first_line_number,
|
||||
obj_name: self.obj_name.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ impl Compiler {
|
||||
}
|
||||
|
||||
fn push_output(&mut self, code: CodeObject) {
|
||||
self.output_stack.push(code.into());
|
||||
self.output_stack.push(code);
|
||||
}
|
||||
|
||||
fn push_new_code_object(&mut self, obj_name: String) {
|
||||
@@ -189,7 +189,7 @@ impl Compiler {
|
||||
}
|
||||
|
||||
fn pop_code_object(&mut self) -> CodeObject {
|
||||
self.output_stack.pop().unwrap().into()
|
||||
self.output_stack.pop().unwrap()
|
||||
}
|
||||
|
||||
fn compile_program(
|
||||
|
||||
Reference in new issue
Block a user