1 Commits

Author SHA1 Message Date
428e75488d Typos and todos 2024-08-09 10:15:18 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -37,13 +37,12 @@ impl LightScript for Party {
fn set_param(&mut self, bulb: &BulbId, name: &str, param: Param) {
if name != "Party" {
error!("invalit param name");
error!("invalid param name");
return;
}
// TODO: should be toggle
let Param::Toggle(enabled) = param else {
error!("invalit param kind");
error!("invalid param kind");
return;
};

View File

@ -1,5 +1,6 @@
use tokio::task::AbortHandle;
/// A tokio task handle that will abort the task when dropped.
pub struct DeadMansHandle(pub AbortHandle);
impl From<AbortHandle> for DeadMansHandle {