Skip to content

Commit

Permalink
notekey: add hash trait
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Feb 15, 2024
1 parent d6cf3db commit 750539d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/note.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 750539d

Please sign in to comment.