Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-a16z committed Nov 17, 2024
1 parent a7a27a2 commit db5a9d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions jolt-core/src/msm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ impl MsmType {
}

Check warning on line 38 in jolt-core/src/msm/mod.rs

View workflow job for this annotation

GitHub Actions / fmt

Diff in /home/runner/work/jolt/jolt/jolt-core/src/msm/mod.rs
}

type TrackedScalar<'a, P: Pairing> = (usize, &'a [P::ScalarField]);
pub type ScalarGroups<'a, P: Pairing> = (MsmType, Vec<TrackedScalar<'a, P>>);

#[tracing::instrument(skip_all)]
pub fn group_scalars_by_msm_type<'a, P: Pairing>(
scalars: &[&'a [P::ScalarField]],
) -> Vec<(MsmType, Vec<(usize, &'a [P::ScalarField])>)> {
) -> Vec<ScalarGroups<'a, P>> {
// Group scalars by their max number of bits and keep track of their original indices
let mut grouped: Vec<Vec<(usize, &'a [P::ScalarField])>> = vec![Vec::new(); 5];
let mut grouped: Vec<Vec<TrackedScalar<'a, P>>> = vec![Vec::new(); 5];

// Process slices in parallel
scalars
Expand Down

0 comments on commit db5a9d7

Please sign in to comment.