Skip to content

Commit bddf238

Browse files
style: apply rustfmt formatting
Co-authored-by: samueltardieu <44656+samueltardieu@users.noreply.github.com>
1 parent 17605ca commit bddf238

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/undirected/connected_components.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,14 @@ where
107107
let (_, gindices) = Self::separate_components(groups);
108108
// Pre-size the hash map to reduce reallocations
109109
let estimated_capacity = gindices.iter().filter(|&&n| n != usize::MAX).count();
110-
let mut gb: HashMap<usize, HashSet<N, BuildHasherDefault<AHasher>>, BuildHasherDefault<AHasher>> =
111-
HashMap::with_capacity_and_hasher(estimated_capacity, BuildHasherDefault::<AHasher>::default());
110+
let mut gb: HashMap<
111+
usize,
112+
HashSet<N, BuildHasherDefault<AHasher>>,
113+
BuildHasherDefault<AHasher>,
114+
> = HashMap::with_capacity_and_hasher(
115+
estimated_capacity,
116+
BuildHasherDefault::<AHasher>::default(),
117+
);
112118
for (i, n) in gindices
113119
.into_iter()
114120
.enumerate()

0 commit comments

Comments
 (0)