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 3030### Changed
3131
3232* 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 )
3334
3435### Added
3536
Original file line number Diff line number Diff line change 22// Copyright (c) 2023-2025 Rust Nostr Developers
33// Distributed under the MIT software license
44
5+ use std:: any:: Any ;
56use std:: collections:: { BTreeSet , HashMap , HashSet } ;
6- use std:: fmt;
7+ use std:: fmt:: Debug ;
78use std:: sync:: Arc ;
89
910use nostr:: prelude:: * ;
9495/// Nostr Events Database
9596///
9697/// Store for the nostr events.
97- pub trait NostrEventsDatabase : fmt :: Debug + Send + Sync {
98+ pub trait NostrEventsDatabase : Any + Debug + Send + Sync {
9899 /// Save [`Event`] into store
99100 ///
100101 /// **This method assumes that [`Event`] was already verified**
You can’t perform that action at this time.
0 commit comments