From fb42ca13cc3a1fae36f9e99be07c3d9f63962103 Mon Sep 17 00:00:00 2001 From: Byron Hambly Date: Wed, 19 Oct 2022 14:55:39 +0200 Subject: [PATCH] chore: clippy fix --- swap/src/asb/event_loop.rs | 2 +- swap/src/protocol/alice/swap.rs | 6 +++--- swap/src/protocol/bob/swap.rs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/swap/src/asb/event_loop.rs b/swap/src/asb/event_loop.rs index 9248a324..581bda2e 100644 --- a/swap/src/asb/event_loop.rs +++ b/swap/src/asb/event_loop.rs @@ -176,7 +176,7 @@ where let _ = responder.respond(wallet_snapshot); } SwarmEvent::Behaviour(OutEvent::SwapSetupCompleted{peer_id, swap_id, state3}) => { - let _ = self.handle_execution_setup_done(peer_id, swap_id, state3).await; + self.handle_execution_setup_done(peer_id, swap_id, state3).await; } SwarmEvent::Behaviour(OutEvent::SwapDeclined { peer, error }) => { tracing::warn!(%peer, "Ignoring spot price request: {}", error); diff --git a/swap/src/protocol/alice/swap.rs b/swap/src/protocol/alice/swap.rs index 77516d11..941e5a43 100644 --- a/swap/src/protocol/alice/swap.rs +++ b/swap/src/protocol/alice/swap.rs @@ -176,7 +176,7 @@ where } }, result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => { - let _ = result?; + result?; AliceState::CancelTimelockExpired { monero_wallet_restore_blockheight, transfer_proof, @@ -196,7 +196,7 @@ where biased; // make sure the cancel timelock expiry future is polled first result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => { - let _ = result?; + result?; AliceState::CancelTimelockExpired { monero_wallet_restore_blockheight, transfer_proof, @@ -326,7 +326,7 @@ where } } result = tx_cancel_status.wait_until_confirmed_with(state3.punish_timelock) => { - let _ = result?; + result?; AliceState::BtcPunishable { monero_wallet_restore_blockheight, diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index c82bf10e..66933a87 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -137,7 +137,7 @@ async fn next_state( } }, result = cancel_timelock_expires => { - let _ = result?; + result?; tracing::info!("Alice took too long to lock Monero, cancelling the swap"); let state4 = state3.cancel(); @@ -174,7 +174,7 @@ async fn next_state( } } result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { - let _ = result?; + result?; BobState::CancelTimelockExpired(state.cancel()) } } @@ -198,7 +198,7 @@ async fn next_state( } }, result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { - let _ = result?; + result?; BobState::CancelTimelockExpired(state.cancel()) } } @@ -215,7 +215,7 @@ async fn next_state( BobState::BtcRedeemed(state5?) }, result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { - let _ = result?; + result?; BobState::CancelTimelockExpired(state.cancel()) } }