Skip to content

Commit 567f582

Browse files
committed
get_operand_value unwrap -> expect
1 parent de9f3e4 commit 567f582

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/libmwemu/src/emu/operands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ impl Emu {
433433
OpKind::Register => self.regs().get_reg(ins.op_register(noperand)),
434434
OpKind::Memory => self
435435
.handle_memory_get_operand(ins, noperand, do_derref)
436-
.unwrap(),
436+
.expect(&format!("handle_memory_get_operand failed for {:?} op {}", ins.mnemonic(), noperand)),
437437
_ => unimplemented!("unimplemented operand type {:?}", ins.op_kind(noperand)),
438438
};
439439
Some(value)

0 commit comments

Comments
 (0)