Skip to content

Commit

Permalink
indexeddb: unsafe impl Sync and Send for WebDatabase
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Aug 23, 2024
1 parent fa6afe5 commit 01d45e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/nostr-indexeddb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

//! Web's IndexedDB Storage backend for Nostr SDK
#![forbid(unsafe_code)]
#![warn(missing_docs)]
#![warn(rustdoc::bare_urls)]
#![allow(unknown_lints, clippy::arc_with_non_send_sync)]
Expand Down Expand Up @@ -73,6 +72,10 @@ impl fmt::Debug for WebDatabase {
}
}

unsafe impl Send for WebDatabase {}

unsafe impl Sync for WebDatabase {}

impl WebDatabase {
async fn new<S>(name: S, helper: DatabaseHelper) -> Result<Self, IndexedDBError>
where
Expand Down

0 comments on commit 01d45e4

Please sign in to comment.