From 750539d0b71ed81ec626e4670eccf34950ad2942 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 15 Feb 2024 12:42:37 -0800 Subject: [PATCH] notekey: add hash trait Signed-off-by: William Casarin --- src/note.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/note.rs b/src/note.rs index e9bcd14..73721ee 100644 --- 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 {