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/command_policy.rs | |
| parent | fde795c093c0392988cae4690b8ef85483d30162 (diff) | |
cargo fmt
Diffstat (limited to 'src/command_policy.rs')
| -rw-r--r-- | src/command_policy.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/command_policy.rs b/src/command_policy.rs index e5859bb..a1bb3bf 100644 --- a/src/command_policy.rs +++ b/src/command_policy.rs | |||
| @@ -63,8 +63,7 @@ | |||
| 63 | /// # } | 63 | /// # } |
| 64 | /// # async fn turn_on_motor() -> Result<(), ()> { Ok(()) } | 64 | /// # async fn turn_on_motor() -> Result<(), ()> { Ok(()) } |
| 65 | /// ``` | 65 | /// ``` |
| 66 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | 66 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] |
| 67 | #[derive(Default)] | ||
| 68 | pub enum CommandPolicy { | 67 | pub enum CommandPolicy { |
| 69 | /// Automatically publish the entity's state when a command is received. | 68 | /// Automatically publish the entity's state when a command is received. |
| 70 | #[default] | 69 | #[default] |
| @@ -73,4 +72,3 @@ pub enum CommandPolicy { | |||
| 73 | /// Do not automatically publish state. The application must manually update the state. | 72 | /// Do not automatically publish state. The application must manually update the state. |
| 74 | Manual, | 73 | Manual, |
| 75 | } | 74 | } |
| 76 | |||
