Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
qwang98 committed Feb 5, 2025
1 parent 108f215 commit 0a79b2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor/src/witgen/bus_accumulator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<'a, T: FieldElement, Ext: ExtensionField<T> + Sync> BusAccumulatorGenerator
.into_par_iter()
// Each thread builds its own BTreeMap.
.fold(
|| BTreeMap::new(),
BTreeMap::new,
|mut acc, (poly_id, column)| {
acc.entry(poly_id).and_modify(|existing: &mut Vec<T>| {
// Element-wise addition. We assume both vectors have the same length.
Expand All @@ -152,7 +152,7 @@ impl<'a, T: FieldElement, Ext: ExtensionField<T> + Sync> BusAccumulatorGenerator
)
// Merge the thread-local BTreeMaps.
.reduce(
|| BTreeMap::new(),
BTreeMap::new,
|mut map1, map2| {
for (poly_id, column) in map2 {
map1.entry(poly_id).and_modify(|existing| {
Expand Down

0 comments on commit 0a79b2c

Please sign in to comment.