chore: clippy fix

This commit is contained in:
Byron Hambly 2022-10-19 14:55:39 +02:00
parent 2a0fc3f278
commit fb42ca13cc
No known key found for this signature in database
GPG Key ID: DE8F6EA20A661697
3 changed files with 8 additions and 8 deletions

View File

@ -176,7 +176,7 @@ where
let _ = responder.respond(wallet_snapshot); let _ = responder.respond(wallet_snapshot);
} }
SwarmEvent::Behaviour(OutEvent::SwapSetupCompleted{peer_id, swap_id, state3}) => { 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 }) => { SwarmEvent::Behaviour(OutEvent::SwapDeclined { peer, error }) => {
tracing::warn!(%peer, "Ignoring spot price request: {}", error); tracing::warn!(%peer, "Ignoring spot price request: {}", error);

View File

@ -176,7 +176,7 @@ where
} }
}, },
result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => { result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => {
let _ = result?; result?;
AliceState::CancelTimelockExpired { AliceState::CancelTimelockExpired {
monero_wallet_restore_blockheight, monero_wallet_restore_blockheight,
transfer_proof, transfer_proof,
@ -196,7 +196,7 @@ where
biased; // make sure the cancel timelock expiry future is polled first biased; // make sure the cancel timelock expiry future is polled first
result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => { result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => {
let _ = result?; result?;
AliceState::CancelTimelockExpired { AliceState::CancelTimelockExpired {
monero_wallet_restore_blockheight, monero_wallet_restore_blockheight,
transfer_proof, transfer_proof,
@ -326,7 +326,7 @@ where
} }
} }
result = tx_cancel_status.wait_until_confirmed_with(state3.punish_timelock) => { result = tx_cancel_status.wait_until_confirmed_with(state3.punish_timelock) => {
let _ = result?; result?;
AliceState::BtcPunishable { AliceState::BtcPunishable {
monero_wallet_restore_blockheight, monero_wallet_restore_blockheight,

View File

@ -137,7 +137,7 @@ async fn next_state(
} }
}, },
result = cancel_timelock_expires => { result = cancel_timelock_expires => {
let _ = result?; result?;
tracing::info!("Alice took too long to lock Monero, cancelling the swap"); tracing::info!("Alice took too long to lock Monero, cancelling the swap");
let state4 = state3.cancel(); let state4 = state3.cancel();
@ -174,7 +174,7 @@ async fn next_state(
} }
} }
result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => {
let _ = result?; result?;
BobState::CancelTimelockExpired(state.cancel()) BobState::CancelTimelockExpired(state.cancel())
} }
} }
@ -198,7 +198,7 @@ async fn next_state(
} }
}, },
result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => {
let _ = result?; result?;
BobState::CancelTimelockExpired(state.cancel()) BobState::CancelTimelockExpired(state.cancel())
} }
} }
@ -215,7 +215,7 @@ async fn next_state(
BobState::BtcRedeemed(state5?) BobState::BtcRedeemed(state5?)
}, },
result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => { result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => {
let _ = result?; result?;
BobState::CancelTimelockExpired(state.cancel()) BobState::CancelTimelockExpired(state.cancel())
} }
} }