diff options
Diffstat (limited to 'crates/parser/src/lib.rs')
| -rw-r--r-- | crates/parser/src/lib.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index eabeeab..364209c 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -41,7 +41,7 @@ pub use tinywasm_types::TinyWasmModule; /// Parser optimization and lowering options. #[non_exhaustive] -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Default)] pub struct ParserOptions { // /// Enable control-flow graph cleanup rewrites. // pub cfg_cleanup: bool, @@ -51,12 +51,6 @@ pub struct ParserOptions { // pub tailcall_rewrite: bool, } -impl Default for ParserOptions { - fn default() -> Self { - Self {} - } -} - /// A WebAssembly parser #[derive(Debug, Default)] pub struct Parser { |
