From eff24c611bf731b10cf3bc370b0b7d67edffb532 Mon Sep 17 00:00:00 2001 From: siq1 Date: Tue, 19 Nov 2024 09:06:09 +0700 Subject: [PATCH] clippy --- expander_compiler/src/compile/mod.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/expander_compiler/src/compile/mod.rs b/expander_compiler/src/compile/mod.rs index 4d65660..b4148f5 100644 --- a/expander_compiler/src/compile/mod.rs +++ b/expander_compiler/src/compile/mod.rs @@ -10,18 +10,11 @@ mod random_circuit_tests; #[cfg(test)] mod tests; +#[derive(Default)] pub struct CompileOptions { pub mul_fanout_limit: Option, } -impl Default for CompileOptions { - fn default() -> Self { - Self { - mul_fanout_limit: None, - } - } -} - impl CompileOptions { pub fn with_mul_fanout_limit(mut self, mul_fanout_limit: usize) -> Self { self.mul_fanout_limit = Some(mul_fanout_limit);