diff --git a/crates/tor-config/src/mut_cfg.rs b/crates/tor-config/src/mut_cfg.rs index 792b13fed..4cb736a72 100644 --- a/crates/tor-config/src/mut_cfg.rs +++ b/crates/tor-config/src/mut_cfg.rs @@ -6,7 +6,7 @@ use std::sync::{Arc, RwLock}; /// /// Internally, this is just a `RwLock>`; this type just defines some /// convenience wrappers for it. -#[derive(Debug)] +#[derive(Debug, Default)] pub struct MutCfg { /// The interior configuration object. cfg: RwLock>, @@ -55,12 +55,6 @@ impl MutCfg { } } -impl Default for MutCfg { - fn default() -> Self { - MutCfg::new(T::default()) - } -} - impl From for MutCfg { fn from(config: T) -> MutCfg { MutCfg::new(config)