Avoid creating a reference to a reference.

https://github.com/rust-lang-nursery/rust-clippy/wiki#needless_borrow
This commit is contained in:
Dan Gohman
2017-08-31 11:38:55 -07:00
parent b411d01d6d
commit adfdd77311
2 changed files with 2 additions and 2 deletions

View File

@@ -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),