note-ref: derive hash
This commit is contained in:
@@ -4,7 +4,7 @@ use nostrdb::{Ndb, Note, NoteKey, QueryResult, Transaction};
|
|||||||
use std::borrow::Borrow;
|
use std::borrow::Borrow;
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
|
|
||||||
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
|
#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
|
||||||
pub struct NoteRef {
|
pub struct NoteRef {
|
||||||
pub key: NoteKey,
|
pub key: NoteKey,
|
||||||
pub created_at: u64,
|
pub created_at: u64,
|
||||||
|
|||||||
Reference in New Issue
Block a user