diff --git a/swap/src/bitcoin/timelocks.rs b/swap/src/bitcoin/timelocks.rs index 3f811ae3d..2dbf5a4b0 100644 --- a/swap/src/bitcoin/timelocks.rs +++ b/swap/src/bitcoin/timelocks.rs @@ -52,9 +52,6 @@ impl ExpiredTimelocks { /// /// Retuns `true` even if the swap has already been canceled or punished. pub fn cancel_timelock_expired(&self) -> bool { - match self { - ExpiredTimelocks::None { .. } => false, - _ => true, - } + !matches!(self, ExpiredTimelocks::None { .. }) } } diff --git a/swap/src/monero/wallet.rs b/swap/src/monero/wallet.rs index 85872a9d6..1017525a0 100644 --- a/swap/src/monero/wallet.rs +++ b/swap/src/monero/wallet.rs @@ -349,6 +349,7 @@ pub struct WatchRequest { type ConfirmationListener = Box Pin + Send + 'static>> + Send + 'static>; +#[allow(clippy::too_many_arguments)] async fn wait_for_confirmations_with< C: monero_rpc::wallet::MoneroWalletRpc + Sync, >(