File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
crates/wasmi/src/engine/translator/func Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ pub trait UpdateResultSlot: Sized {
7171impl 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 }
You can’t perform that action at this time.
0 commit comments