From 28c4116565bfe71ef7328f4a34458501ef3dc5b0 Mon Sep 17 00:00:00 2001 From: diogo464 Date: Tue, 16 Dec 2025 14:02:18 +0000 Subject: fixed clippy warnings --- src/entity_switch.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/entity_switch.rs') diff --git a/src/entity_switch.rs b/src/entity_switch.rs index c1531eb..2b799a1 100644 --- a/src/entity_switch.rs +++ b/src/entity_switch.rs @@ -15,21 +15,13 @@ pub enum SwitchClass { /// /// See [`CommandPolicy`] for details on how commands are handled. #[derive(Debug)] +#[derive(Default)] pub struct SwitchConfig { pub common: EntityCommonConfig, pub class: SwitchClass, pub command_policy: CommandPolicy, } -impl Default for SwitchConfig { - fn default() -> Self { - Self { - common: Default::default(), - class: Default::default(), - command_policy: CommandPolicy::default(), - } - } -} impl SwitchConfig { pub(crate) fn populate(&self, config: &mut EntityConfig) { -- cgit