Skip to content

Commit 65cb813

Browse files
committed
f unwrap_or_else
1 parent 0c95e50 commit 65cb813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ where
245245
// Use the set fee_rate or default to fee estimation.
246246
let confirmation_target = ConfirmationTarget::OnchainPayment;
247247
let fee_rate =
248-
fee_rate.unwrap_or(self.fee_estimator.estimate_fee_rate(confirmation_target));
248+
fee_rate.unwrap_or_else(|| self.fee_estimator.estimate_fee_rate(confirmation_target));
249249

250250
let tx = {
251251
let mut locked_wallet = self.inner.lock().unwrap();

0 commit comments

Comments
 (0)