From 1cb8c67b37ac98625b81f582488262efa383afce Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Thu, 14 Mar 2024 22:42:27 +0100 Subject: [PATCH] clippy --- bindings/core/src/method/wallet.rs | 4 ++-- sdk/src/wallet/core/operations/background_syncing.rs | 2 +- sdk/src/wallet/operations/syncing/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/core/src/method/wallet.rs b/bindings/core/src/method/wallet.rs index 1522beb9a8..a1d150352b 100644 --- a/bindings/core/src/method/wallet.rs +++ b/bindings/core/src/method/wallet.rs @@ -139,8 +139,8 @@ pub enum WalletMethod { /// Expected response: [`Transaction`](crate::Response::Transaction) #[serde(rename_all = "camelCase")] GetIncomingTransaction { transaction_id: TransactionId }, - /// Get the [`OutputData`](iota_sdk::wallet::types::OutputData) of an output stored in the wallet. - /// Expected response: [`OutputData`](crate::Response::OutputData) + /// Get the [`OutputWithExtendedMetadata`](iota_sdk::wallet::types::OutputWithExtendedMetadata) of an output stored + /// in the wallet. Expected response: [`OutputData`](crate::Response::OutputData) #[serde(rename_all = "camelCase")] GetOutput { output_id: OutputId }, // /// Expected response: [`ParticipationEvent`](crate::Response::ParticipationEvent) diff --git a/sdk/src/wallet/core/operations/background_syncing.rs b/sdk/src/wallet/core/operations/background_syncing.rs index 49efaa891b..e496d56151 100644 --- a/sdk/src/wallet/core/operations/background_syncing.rs +++ b/sdk/src/wallet/core/operations/background_syncing.rs @@ -28,7 +28,7 @@ where /// Start the background syncing process for the wallet, default interval is 7 seconds pub async fn start_background_syncing( &self, - options: impl Into>, + options: impl Into> + Send, interval: Option, ) -> Result<(), WalletError> { log::debug!("[start_background_syncing]"); diff --git a/sdk/src/wallet/operations/syncing/mod.rs b/sdk/src/wallet/operations/syncing/mod.rs index 58ee51d9bb..3c504e0385 100644 --- a/sdk/src/wallet/operations/syncing/mod.rs +++ b/sdk/src/wallet/operations/syncing/mod.rs @@ -178,7 +178,7 @@ where { /// Sync the wallet by fetching new information from the nodes. Will also reissue pending transactions /// if necessary. A custom default can be set using set_default_sync_options. - pub async fn sync(&self, options: impl Into>) -> Result { + pub async fn sync(&self, options: impl Into> + Send) -> Result { let options = match options.into() { Some(opt) => opt, None => self.default_sync_options().await,