commit 750539d0b71ed81ec626e4670eccf34950ad2942
parent d6cf3dbf7c3433cde99c347ebecd3e2673a25fd6
Author: William Casarin <jb55@jb55.com>
Date: Thu, 15 Feb 2024 12:42:37 -0800
notekey: add hash trait
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/note.rs b/src/note.rs
@@ -1,7 +1,8 @@
use crate::bindings;
use crate::transaction::Transaction;
+use std::hash::Hash;
-#[derive(Debug, Clone, Copy, Eq, Ord, PartialEq, PartialOrd)]
+#[derive(Debug, Clone, Copy, Eq, Ord, PartialEq, PartialOrd, Hash)]
pub struct NoteKey(u64);
impl NoteKey {