diff --git a/compiler/src/compile.rs b/compiler/src/compile.rs index 0ee81d35a..99cd9456e 100644 --- a/compiler/src/compile.rs +++ b/compiler/src/compile.rs @@ -64,19 +64,13 @@ struct Compiler { opts: CompileOpts, } -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Default)] pub struct CompileOpts { /// How optimized the bytecode output should be; any optimize > 0 does /// not emit assert statements pub optimize: u8, } -impl Default for CompileOpts { - fn default() -> Self { - CompileOpts { optimize: 0 } - } -} - #[derive(Debug, Clone, Copy)] struct CompileContext { loop_data: Option<(ir::BlockIdx, ir::BlockIdx)>,