Avoid clone() on a Copy type.
https://github.com/rust-lang-nursery/rust-clippy/wiki#clone_on_copy
This commit is contained in:
@@ -567,7 +567,7 @@ fn translate_operator(
|
||||
acc.insert(depth as usize, branch_ebb);
|
||||
return acc;
|
||||
};
|
||||
let branch_ebb = acc[&(depth as usize)].clone();
|
||||
let branch_ebb = acc[&(depth as usize)];
|
||||
builder.insert_jump_table_entry(jt, index, branch_ebb);
|
||||
acc
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user