Skip to content

Commit 90b8956

Browse files
committed
fix: apply cargo fmt to match style guidelines
1 parent c59c090 commit 90b8956

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

crates/electrum/src/bdk_electrum_client.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use bdk_core::{
66
},
77
BlockId, CheckPoint, ConfirmationBlockTime, TxUpdate,
88
};
9-
use electrum_client::{ElectrumApi, Error, HeaderNotification, GetMerkleRes};
9+
use electrum_client::{ElectrumApi, Error, GetMerkleRes, HeaderNotification};
1010
use std::sync::{Arc, Mutex};
1111

1212
/// We include a chain suffix of a certain length for the purpose of robustness.
@@ -491,10 +491,11 @@ impl<E: ElectrumApi> BdkElectrumClient<E> {
491491
proofs: Vec<(Txid, GetMerkleRes)>,
492492
) -> Result<(), Error> {
493493
// Pre-fetch all required headers
494-
let heights: HashSet<u32> = proofs.iter()
494+
let heights: HashSet<u32> = proofs
495+
.iter()
495496
.map(|(_, proof)| proof.block_height as u32)
496497
.collect();
497-
498+
498499
let mut headers = HashMap::new();
499500
for height in heights {
500501
headers.insert(height, self.fetch_header(height)?);

crates/electrum/tests/test_electrum.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -913,12 +913,7 @@ pub fn test_sync_performance() -> anyhow::Result<()> {
913913

914914
// Measure sync time
915915
let start = Instant::now();
916-
let _ = sync_with_electrum(
917-
&client,
918-
spks.clone(),
919-
&mut recv_chain,
920-
&mut recv_graph,
921-
)?;
916+
let _ = sync_with_electrum(&client, spks.clone(), &mut recv_chain, &mut recv_graph)?;
922917
let sync_duration = start.elapsed();
923918

924919
assert!(

0 commit comments

Comments
 (0)