Fix recent clippy lints

This commit is contained in:
2019-11-13 19:55:33 +01:00
parent 2e58861285
commit d7f3ded7e0
4 changed files with 7 additions and 8 deletions

View File

@@ -380,7 +380,7 @@ fn iastore(machine: &mut Machine) -> Result<()> {
_ => return Err("Cannot use int as heapref"),
};
let index: i32 = machine.cur_stack().pop()?.try_into()?;
let value = machine.cur_stack().pop()?.clone();
let value = machine.cur_stack().pop()?;
RefCell::borrow_mut(&heap)[index as usize] = value;