fix unneeded borrow_mut of ic

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-04-22 13:23:57 -07:00
parent 16e11c5bce
commit 98aa57fd8c

View File

@@ -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());
}