Typos and todos
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user