From 98aa57fd8c167cf90182994a1996fa1e6262712b Mon Sep 17 00:00:00 2001 From: Rachel Powers <508861+Ryex@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:23:57 -0700 Subject: [PATCH] fix unneeded borrow_mut of ic Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com> --- ic10emu/src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ic10emu/src/vm.rs b/ic10emu/src/vm.rs index 813e6d2..00b7825 100644 --- a/ic10emu/src/vm.rs +++ b/ic10emu/src/vm.rs @@ -377,7 +377,7 @@ impl VM { ic.borrow().ic.replace(0); self.set_modified(id); for _i in 0..128 { - if let Err(err) = ic.borrow_mut().step(self, ignore_errors) { + if let Err(err) = ic.borrow().step(self, ignore_errors) { if !ignore_errors { return Err(err.into()); }