chore: clippy fix

This commit is contained in:
Byron Hambly 2022-10-19 14:55:39 +02:00
parent 283ee882d9
commit 95f73e5e4d
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);
}
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);

View File

@ -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,

View File

@ -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())
}
}