Skip to content

Commit 391f94c

Browse files
committed
dedup code in CallStack
1 parent 7e02b23 commit 391f94c

File tree

1 file changed

+1
-5
lines changed
  • crates/wasmi/src/engine/executor/handler

1 file changed

+1
-5
lines changed

crates/wasmi/src/engine/executor/handler/state.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,7 @@ impl CallStack {
310310
}
311311

312312
fn empty() -> Self {
313-
Self {
314-
frames: Vec::new(),
315-
instances: HeadVec::default(),
316-
max_height: 0,
317-
}
313+
Self::new(0)
318314
}
319315

320316
fn reset(&mut self) {

0 commit comments

Comments
 (0)