Impl Hash for BulbId
This commit is contained in:
@ -5,7 +5,7 @@ use std::ops::Deref;
|
||||
use std::str::FromStr;
|
||||
|
||||
/// The mqtt publish id of the bulb
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd)]
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd, Hash)]
|
||||
pub struct BulbId(pub String);
|
||||
|
||||
#[derive(Serialize, Deserialize, Default, Debug, Clone)]
|
||||
|
||||
@ -283,5 +283,3 @@ impl BulbsState {
|
||||
self.bulbs.read().await
|
||||
}
|
||||
}
|
||||
|
||||
use std::fmt::{self, Display, Formatter};
|
||||
|
||||
Reference in New Issue
Block a user