chore: fix clippy

pull/1189/head
Byron Hambly 2 years ago
parent 87b7d3b04e
commit 3816ab762e
No known key found for this signature in database
GPG Key ID: DE8F6EA20A661697

@ -296,7 +296,7 @@ impl<'c> MoneroWalletRpc {
/// Sends amount to address /// Sends amount to address
pub async fn transfer(&self, address: &str, amount: u64) -> Result<Transfer> { pub async fn transfer(&self, address: &str, amount: u64) -> Result<Transfer> {
Ok(self.client().transfer_single(0, amount, address).await?) self.client().transfer_single(0, amount, address).await
} }
pub async fn address(&self) -> Result<GetAddress> { pub async fn address(&self) -> Result<GetAddress> {

@ -248,9 +248,8 @@ impl EventLoopHandle {
&mut self, &mut self,
tx_redeem_encsig: EncryptedSignature, tx_redeem_encsig: EncryptedSignature,
) -> Result<(), bmrng::error::RequestError<EncryptedSignature>> { ) -> Result<(), bmrng::error::RequestError<EncryptedSignature>> {
Ok(self self.encrypted_signature
.encrypted_signature
.send_receive(tx_redeem_encsig) .send_receive(tx_redeem_encsig)
.await?) .await
} }
} }

@ -142,7 +142,7 @@ impl WalletRpc {
tracing::debug!("{}%", percent); tracing::debug!("{}%", percent);
notified = percent; notified = percent;
} }
file.write(&bytes).await?; file.write_all(&bytes).await?;
} }
file.flush().await?; file.flush().await?;

Loading…
Cancel
Save