Skip to content

Commit

Permalink
lint: satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Einliterflasche committed Sep 18, 2024
1 parent 8aac029 commit a117d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions swap/src/bitcoin/timelocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 { .. })
}
}
1 change: 1 addition & 0 deletions swap/src/monero/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ pub struct WatchRequest {
type ConfirmationListener =
Box<dyn Fn(u64) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>> + Send + 'static>;

#[allow(clippy::too_many_arguments)]
async fn wait_for_confirmations_with<
C: monero_rpc::wallet::MoneroWalletRpc<reqwest::Client> + Sync,
>(
Expand Down

0 comments on commit a117d8a

Please sign in to comment.