Skip to content

Commit

Permalink
indexeddb: impl From<IndexedDBError> for DatabaseError
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Nov 13, 2023
1 parent db91337 commit 3437369
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/nostr-indexeddb/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ impl From<indexed_db_futures::web_sys::DomException> for IndexedDBError {
}
}
}

impl From<IndexedDBError> for DatabaseError {
fn from(e: IndexedDBError) -> Self {
Self::backend(e)
}
}

0 comments on commit 3437369

Please sign in to comment.