diff options
| author | diogo464 <[email protected]> | 2026-01-20 15:00:53 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2026-01-20 15:00:53 +0000 |
| commit | 4402ce6478027d48435eb937087690ae41f152c1 (patch) | |
| tree | 6e9a984a78ff67c6fb447ac928fdb1481732d74c /src/entity_switch.rs | |
| parent | fde795c093c0392988cae4690b8ef85483d30162 (diff) | |
cargo fmt
Diffstat (limited to 'src/entity_switch.rs')
| -rw-r--r-- | src/entity_switch.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/entity_switch.rs b/src/entity_switch.rs index 2b799a1..b685ce5 100644 --- a/src/entity_switch.rs +++ b/src/entity_switch.rs | |||
| @@ -14,15 +14,13 @@ pub enum SwitchClass { | |||
| 14 | /// Configuration for a switch entity. | 14 | /// Configuration for a switch entity. |
| 15 | /// | 15 | /// |
| 16 | /// See [`CommandPolicy`] for details on how commands are handled. | 16 | /// See [`CommandPolicy`] for details on how commands are handled. |
| 17 | #[derive(Debug)] | 17 | #[derive(Debug, Default)] |
| 18 | #[derive(Default)] | ||
| 19 | pub struct SwitchConfig { | 18 | pub struct SwitchConfig { |
| 20 | pub common: EntityCommonConfig, | 19 | pub common: EntityCommonConfig, |
| 21 | pub class: SwitchClass, | 20 | pub class: SwitchClass, |
| 22 | pub command_policy: CommandPolicy, | 21 | pub command_policy: CommandPolicy, |
| 23 | } | 22 | } |
| 24 | 23 | ||
| 25 | |||
| 26 | impl SwitchConfig { | 24 | impl SwitchConfig { |
| 27 | pub(crate) fn populate(&self, config: &mut EntityConfig) { | 25 | pub(crate) fn populate(&self, config: &mut EntityConfig) { |
| 28 | self.common.populate(config); | 26 | self.common.populate(config); |
