From 3816ab762e17a69958c9b71f20636c9a25ad9885 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Thu, 27 Oct 2022 15:22:49 +0200 Subject: [PATCH] chore: fix clippy --- monero-harness/src/lib.rs | 2 +- swap/src/cli/event_loop.rs | 5 ++--- swap/src/monero/wallet_rpc.rs | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/monero-harness/src/lib.rs b/monero-harness/src/lib.rs index bdcfc206..5e1f2727 100644 --- a/monero-harness/src/lib.rs +++ b/monero-harness/src/lib.rs @@ -296,7 +296,7 @@ impl<'c> MoneroWalletRpc { /// Sends amount to address pub async fn transfer(&self, address: &str, amount: u64) -> Result { - Ok(self.client().transfer_single(0, amount, address).await?) + self.client().transfer_single(0, amount, address).await } pub async fn address(&self) -> Result { diff --git a/swap/src/cli/event_loop.rs b/swap/src/cli/event_loop.rs index 2a9c16d3..1799d20b 100644 --- a/swap/src/cli/event_loop.rs +++ b/swap/src/cli/event_loop.rs @@ -248,9 +248,8 @@ impl EventLoopHandle { &mut self, tx_redeem_encsig: EncryptedSignature, ) -> Result<(), bmrng::error::RequestError> { - Ok(self - .encrypted_signature + self.encrypted_signature .send_receive(tx_redeem_encsig) - .await?) + .await } } diff --git a/swap/src/monero/wallet_rpc.rs b/swap/src/monero/wallet_rpc.rs index 8466a36b..326fe7cd 100644 --- a/swap/src/monero/wallet_rpc.rs +++ b/swap/src/monero/wallet_rpc.rs @@ -142,7 +142,7 @@ impl WalletRpc { tracing::debug!("{}%", percent); notified = percent; } - file.write(&bytes).await?; + file.write_all(&bytes).await?; } file.flush().await?;