Skip to content

Commit 383b72b

Browse files
committed
add Default impl to Stack
1 parent 1d065f9 commit 383b72b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#[derive(Debug, Clone)]
1+
#[derive(Debug, Default, Clone)]
22
pub struct ConstRegistry {}

crates/wasmi/src/engine/translator/stack2/locals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::core::ValType;
22
use alloc::vec::Vec;
33

4-
#[derive(Debug, Clone)]
4+
#[derive(Debug, Default, Clone)]
55
pub struct LocalsRegistry {
66
groups: Vec<LocalGroup>,
77
len_locals: usize,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::core::{TypedVal, ValType};
66
use alloc::vec::Vec;
77
use core::num::NonZeroUsize;
88

9-
#[derive(Debug, Clone)]
109
/// The Wasm value stack during translation from Wasm to Wasmi bytecode.
10+
#[derive(Debug, Default, Clone)]
1111
pub struct Stack {
1212
/// The stack of operands.
1313
operands: Vec<StackOperand>,

0 commit comments

Comments
 (0)