Skip to content

Commit 64f420e

Browse files
committed
apply clippy suggestions
1 parent 90a1247 commit 64f420e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

crates/wasmi/src/engine/translator/func/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ impl FuncTranslator {
21782178
}
21792179
};
21802180
self.push_instr(store_op, FuelCostsProvider::store)?;
2181-
return Ok(());
2181+
Ok(())
21822182
}
21832183

21842184
/// Encodes a Wasm store operator with `(mem 0)` and 16-bit encodable `offset` to Wasmi bytecode.

crates/wasmi/src/engine/translator/func/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ pub trait UpdateResultSlot: Sized {
7171
impl UpdateResultSlot for Op {
7272
fn update_result_slot(&self, new_result: Slot) -> Option<Self> {
7373
let mut op = *self;
74-
let Some(result_mut) = op.result_mut() else {
75-
return None;
76-
};
74+
let result_mut = op.result_mut()?;
7775
*result_mut = new_result;
7876
Some(op)
7977
}

0 commit comments

Comments
 (0)