add NoteId hashbrown Equivalent impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
1 parent
cc5a888b89
commit
6da10c4faf
3 files changed
+8
No files matched your search
@@ -143,3 +143,9 @@ impl<'de> Deserialize<'de> for NoteId {
|
||||
NoteId::from_hex(&s).map_err(serde::de::Error::custom)
|
||||
}
|
||||
}
|
||||
|
||||
impl hashbrown::Equivalent<NoteId> for &[u8; 32] {
|
||||
fn equivalent(&self, key: &NoteId) -> bool {
|
||||
self.as_slice() == key.bytes()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user