Avoid creating a reference to a reference.
https://github.com/rust-lang-nursery/rust-clippy/wiki#needless_borrow
This commit is contained in:
@@ -468,7 +468,7 @@ impl<'a> Context<'a> {
|
||||
/// Leave `self.values` unchanged on failure.
|
||||
fn add_class(&mut self, value: Value) -> Result<(), (Value, Value)> {
|
||||
self.forest.try_merge(
|
||||
&self.values,
|
||||
self.values,
|
||||
self.virtregs.congruence_class(&value),
|
||||
&self.func.dfg,
|
||||
&self.func.layout,
|
||||
|
||||
@@ -26,7 +26,7 @@ impl WasmRuntime for DummyRuntime {
|
||||
builder: &mut FunctionBuilder<Local>,
|
||||
global_index: GlobalIndex,
|
||||
) -> Value {
|
||||
let ref glob = self.globals[global_index as usize];
|
||||
let glob = self.globals[global_index as usize];
|
||||
match glob.ty {
|
||||
I32 => builder.ins().iconst(glob.ty, -1),
|
||||
I64 => builder.ins().iconst(glob.ty, -1),
|
||||
|
||||
Reference in New Issue
Block a user