mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-02-20 21:44:29 +01:00
Fix new clippy warnings (#689)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user