Skip to content

Commit ce752a9

Browse files
committed
Clippy
1 parent 0e1483e commit ce752a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/codegen/src/ir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ fn generate_exception_table(blocks: &[Block], block_to_index: &[u32]) -> Box<[u8
748748

749749
// No current entry, handler starts - begin new entry
750750
(None, Some(handler)) => {
751-
current_entry = Some((handler.clone(), instr_index));
751+
current_entry = Some((*handler, instr_index));
752752
}
753753

754754
// Current entry exists, same handler - continue
@@ -767,7 +767,7 @@ fn generate_exception_table(blocks: &[Block], block_to_index: &[u32]) -> Box<[u8
767767
curr_handler.stack_depth as u16,
768768
curr_handler.preserve_lasti,
769769
));
770-
current_entry = Some((handler.clone(), instr_index));
770+
current_entry = Some((*handler, instr_index));
771771
}
772772

773773
// Current entry exists, no handler - finish current entry

examples/dis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ fn main() -> Result<(), lexopt::Error> {
6060

6161
for script in &scripts {
6262
if script.exists() && script.is_file() {
63-
let res = display_script(script, mode, opts.clone(), expand_code_objects);
63+
let res = display_script(script, mode, opts, expand_code_objects);
6464
if let Err(e) = res {
6565
error!("Error while compiling {script:?}: {e}");
6666
}

0 commit comments

Comments
 (0)