Fix clippy lints

This commit is contained in:
Noah committed 2020-10-19 23:55:55 -05:00
1 parent e74a8ec9fb
commit a665edc421
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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(),
}
}
+2 -2
View File
@@ -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(