File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/wasmi/src/engine/translator/translator2/stack Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -334,10 +334,10 @@ impl Stack {
334
334
/// # Panics
335
335
///
336
336
/// If `self` does not contain enough operands to pop.
337
- pub fn pop2 ( & mut self ) -> Option < ( Operand , Operand ) > {
337
+ pub fn pop2 ( & mut self ) -> ( Operand , Operand ) {
338
338
let o2 = self . pop ( ) ;
339
339
let o1 = self . pop ( ) ;
340
- Some ( ( o1, o2) )
340
+ ( o1, o2)
341
341
}
342
342
343
343
/// Pops the two top-most [`Operand`] from the [`Stack`].
@@ -349,11 +349,11 @@ impl Stack {
349
349
/// # Panics
350
350
///
351
351
/// If `self` does not contain enough operands to pop.
352
- pub fn pop3 ( & mut self ) -> Option < ( Operand , Operand , Operand ) > {
352
+ pub fn pop3 ( & mut self ) -> ( Operand , Operand , Operand ) {
353
353
let o3 = self . pop ( ) ;
354
354
let o2 = self . pop ( ) ;
355
355
let o1 = self . pop ( ) ;
356
- Some ( ( o1, o2, o3) )
356
+ ( o1, o2, o3)
357
357
}
358
358
359
359
/// Preserve all locals on the [`Stack`] that refer to `local_index`.
You can’t perform that action at this time.
0 commit comments