From f13998673c50731cd7a4938cff40abc6cefe7a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Florkiewicz?= Date: Tue, 20 Aug 2024 10:10:47 +0200 Subject: [PATCH] fix: Remove unneded idb dependency --- Cargo.toml | 1 - src/indexed_db_blockstore.rs | 6 ------ 2 files changed, 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 099a5a5..70a55ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,6 @@ tokio = { version = "1.29.0", features = ["macros", "rt"], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] js-sys = { version = "0.3.68", optional = true } rexie = { version = "0.6.1", optional = true } -idb = { version = "0.6.2", optional = true } wasm-bindgen = { version = "0.2.91", optional = true } [dev-dependencies] diff --git a/src/indexed_db_blockstore.rs b/src/indexed_db_blockstore.rs index 803cd7e..60e1e04 100644 --- a/src/indexed_db_blockstore.rs +++ b/src/indexed_db_blockstore.rs @@ -135,12 +135,6 @@ impl From for Error { } } -impl From for Error { - fn from(value: idb::Error) -> Self { - Error::FatalDatabaseError(value.to_string()) - } -} - async fn has_key(store: &Store, key: &JsValue) -> Result { let key_range = KeyRange::only(key)?; let count = store.count(Some(key_range)).await?;