From 1cec130b71f922f721fa040abcada2da8d7bf132 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Mon, 18 Nov 2024 10:46:56 +0100 Subject: [PATCH] ffi: remove `async-utility` dep Signed-off-by: Yuki Kishimoto --- Cargo.lock | 1 - bindings/nostr-sdk-ffi/Cargo.toml | 1 - bindings/nostr-sdk-ffi/src/error.rs | 6 ------ 3 files changed, 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index fa1d07ba2..7e5b07969 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3348,7 +3348,6 @@ name = "nostr-sdk-ffi" version = "0.1.0" dependencies = [ "async-trait", - "async-utility", "nostr", "nostr-connect", "nostr-relay-builder", diff --git a/bindings/nostr-sdk-ffi/Cargo.toml b/bindings/nostr-sdk-ffi/Cargo.toml index 0b4e85098..ef6515f52 100644 --- a/bindings/nostr-sdk-ffi/Cargo.toml +++ b/bindings/nostr-sdk-ffi/Cargo.toml @@ -15,7 +15,6 @@ ndb = ["nostr-sdk/ndb"] [dependencies] async-trait.workspace = true -async-utility.workspace = true nostr = { workspace = true, features = ["std", "all-nips"] } nostr-connect.workspace = true nostr-relay-builder.workspace = true diff --git a/bindings/nostr-sdk-ffi/src/error.rs b/bindings/nostr-sdk-ffi/src/error.rs index 7a5871da7..086901cf2 100644 --- a/bindings/nostr-sdk-ffi/src/error.rs +++ b/bindings/nostr-sdk-ffi/src/error.rs @@ -267,12 +267,6 @@ impl From for NostrSdkError { } } -impl From for NostrSdkError { - fn from(e: async_utility::thread::Error) -> NostrSdkError { - Self::Generic(e.to_string()) - } -} - impl From for NostrSdkError { fn from(e: nostr_relay_builder::error::Error) -> NostrSdkError { Self::Generic(e.to_string())