Fix new clippy warnings (#689)

This commit is contained in:
Daniel Granhão
2025-01-23 09:42:10 +00:00
committed by GitHub
parent 1dd94e52ec
commit 6ec6c96709
2 changed files with 4 additions and 1 deletions

View File

@@ -33,6 +33,9 @@ version = "0.4.0-rc3"
[workspace.lints.clippy]
empty_line_after_doc_comments = "allow"
[workspace.lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(frb_expand)'] }
[workspace.dependencies]
anyhow = "1.0"
log = "0.4.20"

View File

@@ -206,7 +206,7 @@ impl RecoveredOnchainDataChainReceive {
) -> Option<PaymentState> {
let is_refundable = self.btc_user_lockup_address_balance_sat > 0
&& (is_expired
|| expected_user_lockup_amount_sat.map_or(false, |expected_lockup_amount_sat| {
|| expected_user_lockup_amount_sat.is_some_and(|expected_lockup_amount_sat| {
expected_lockup_amount_sat != self.btc_user_lockup_amount_sat
}));
match &self.btc_user_lockup_tx_id {