mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-23 22:01:21 -05:00
chore: fix clippy
This commit is contained in:
parent
7660b5df7d
commit
56ccd798e2
@ -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…
Reference in New Issue
Block a user