Skip to content

Commit a2b25a2

Browse files
committed
clippy
1 parent ccef787 commit a2b25a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/lean_vm/src/isa/instruction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ impl Instruction {
186186
if *for_range_check {
187187
// if for_range_check, ignore the UndefinedMemory error from get()
188188
let value = ctx.memory.get(ptr.to_usize() + shift_1);
189-
if value.is_ok() {
190-
ctx.memory.set(memory_address_res, value.unwrap())?;
189+
if let Ok(value) = value {
190+
ctx.memory.set(memory_address_res, value)?;
191191
}
192192
} else {
193193
// else, bubble it up

0 commit comments

Comments
 (0)