Skip to content

Commit 000fff0

Browse files
committed
Clippy
1 parent 0e1483e commit 000fff0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/codegen/src/ir.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,13 +742,13 @@ fn generate_exception_table(blocks: &[Block], block_to_index: &[u32]) -> Box<[u8
742742
// instr_size includes EXTENDED_ARG instructions
743743
let instr_size = instr.arg.instr_size() as u32;
744744

745-
match (&current_entry, &instr.except_handler) {
745+
match (&current_entry, instr.except_handler) {
746746
// No current entry, no handler - nothing to do
747747
(None, None) => {}
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)