File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
crates/nostr-database/src/events Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 30
30
### Changed
31
31
32
32
* nostr: impl ` Any ` for ` NostrSigner ` ([ Yuki Kishimoto] at https://github.com/rust-nostr/nostr/pull/845 )
33
+ * database: impl ` Any ` for ` NostrEventsDatabase ` ([ Yuki Kishimoto] at https://github.com/rust-nostr/nostr/pull/845 )
33
34
34
35
### Added
35
36
Original file line number Diff line number Diff line change 2
2
// Copyright (c) 2023-2025 Rust Nostr Developers
3
3
// Distributed under the MIT software license
4
4
5
+ use std:: any:: Any ;
5
6
use std:: collections:: { BTreeSet , HashMap , HashSet } ;
6
- use std:: fmt;
7
+ use std:: fmt:: Debug ;
7
8
use std:: sync:: Arc ;
8
9
9
10
use nostr:: prelude:: * ;
94
95
/// Nostr Events Database
95
96
///
96
97
/// Store for the nostr events.
97
- pub trait NostrEventsDatabase : fmt :: Debug + Send + Sync {
98
+ pub trait NostrEventsDatabase : Any + Debug + Send + Sync {
98
99
/// Save [`Event`] into store
99
100
///
100
101
/// **This method assumes that [`Event`] was already verified**
You can’t perform that action at this time.
0 commit comments