note-ref: derive hash

This commit is contained in:
kieran
2025-01-20 20:33:49 +00:00
parent 43637f52bb
commit c401f4c484

View File

@@ -4,7 +4,7 @@ use nostrdb::{Ndb, Note, NoteKey, QueryResult, Transaction};
use std::borrow::Borrow;
use std::cmp::Ordering;
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
pub struct NoteRef {
pub key: NoteKey,
pub created_at: u64,