Skip to content

Commit 8250bab

Browse files
committed
apply clippy suggestions
1 parent 7815c53 commit 8250bab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • crates/wasmi/src/engine/translator/func2

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,8 @@ impl FuncTranslator {
308308
let frame = self.stack.peek_control(depth);
309309
let len_branch_params = usize::from(frame.len_branch_params(&self.engine));
310310
let frame_height = frame.height();
311-
frame_height == (self.stack.height() - usize::from(len_branch_params))
311+
frame_height == (self.stack.height() - len_branch_params)
312312
&& (0..len_branch_params)
313-
.into_iter()
314313
.map(|depth| self.stack.peek(depth))
315314
.all(|o| o.is_temp())
316315
}

0 commit comments

Comments
 (0)