Skip to content

Commit e6185d6

Browse files
committed
fix: rustfmt
1 parent 322cdcc commit e6185d6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

crates/bdk/src/wallet/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ use bdk_chain::{
2828
Append, BlockId, ChainPosition, ConfirmationTime, ConfirmationTimeAnchor, FullTxOut,
2929
IndexedTxGraph, Persist, PersistBackend,
3030
};
31+
use bitcoin::consensus::encode::serialize;
3132
use bitcoin::psbt;
3233
use bitcoin::secp256k1::Secp256k1;
3334
use bitcoin::sighash::{EcdsaSighashType, TapSighashType};
3435
use bitcoin::{
3536
absolute, Address, Network, OutPoint, Script, ScriptBuf, Sequence, Transaction, TxOut, Txid,
3637
Weight, Witness,
3738
};
38-
use bitcoin::consensus::encode::serialize;
3939
use core::fmt;
4040
use core::ops::Deref;
4141
use miniscript::psbt::{PsbtExt, PsbtInputExt, PsbtInputSatisfier};
@@ -1225,7 +1225,8 @@ impl<D> Wallet<D> {
12251225
let satisfaction_weight = self
12261226
.get_descriptor_for_keychain(keychain)
12271227
.max_weight_to_satisfy()
1228-
.unwrap() + 4;
1228+
.unwrap()
1229+
+ 4;
12291230
WeightedUtxo {
12301231
utxo: Utxo::Local(LocalUtxo {
12311232
outpoint: txin.previous_output,
@@ -1235,7 +1236,7 @@ impl<D> Wallet<D> {
12351236
derivation_index,
12361237
confirmation_time,
12371238
}),
1238-
satisfaction_weight
1239+
satisfaction_weight,
12391240
}
12401241
}
12411242
None => {
@@ -1558,7 +1559,8 @@ impl<D> Wallet<D> {
15581559
utxo,
15591560
self.get_descriptor_for_keychain(keychain)
15601561
.max_weight_to_satisfy()
1561-
.unwrap() + 4,
1562+
.unwrap()
1563+
+ 4,
15621564
)
15631565
})
15641566
.collect()

0 commit comments

Comments
 (0)