From 5c369a87993e8aae07af07e995ffe302d64549ab Mon Sep 17 00:00:00 2001 From: Claas Date: Mon, 10 Nov 2025 22:58:15 +0100 Subject: [PATCH] Make sense of sentence --- fan-controller/src/task.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fan-controller/src/task.rs b/fan-controller/src/task.rs index 570b679..9d0615d 100644 --- a/fan-controller/src/task.rs +++ b/fan-controller/src/task.rs @@ -600,7 +600,8 @@ const SUBSCRIPTIONS: [Subscription; 2] = [ /// Trait must be implemented by types that represent messages that can be published to MQTT. pub(super) trait Publish { const TYPE: u8 = 3; - /// Providing the topic string for the publish allows implementing types to be defined as enums and match internally to provide the appropriate string for the enum variant. + /// Providing the topic string for the publish through a function allows implementing types to be more flexible. + /// For example, they can be defined as an enum and match internally to provide the appropriate string for the enum variant. fn topic(&self) -> &str; fn payload(&self) -> &[u8]; } -- 2.54.0