Impl Hash for BulbId

This commit is contained in:
hulthe committed 2022-10-03 08:31:42 +02:00
1 parent d6a25648ce
commit 0c8f09e825
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -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)]
-2
View File
@@ -283,5 +283,3 @@ impl BulbsState {
self.bulbs.read().await
}
}
use std::fmt::{self, Display, Formatter};