Skip to content

Commit

Permalink
Update halo2_gadgets/src/poseidon/primitives/mds.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Han <[email protected]>
  • Loading branch information
alexander-camuto and han0110 authored Aug 25, 2023
1 parent f608afc commit af860b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion halo2_gadgets/src/poseidon/primitives/mds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub(super) fn generate_mds<F: FromUniformBytes<64> + Ord, const T: usize>(
} else {
let diff: F = x_j - *x_m;

Check warning on line 84 in halo2_gadgets/src/poseidon/primitives/mds.rs

View workflow job for this annotation

GitHub Actions / Test on ubuntu-latest

unused variable: `diff`

Check warning on line 84 in halo2_gadgets/src/poseidon/primitives/mds.rs

View workflow job for this annotation

GitHub Actions / Test on windows-latest

unused variable: `diff`

Check warning on line 84 in halo2_gadgets/src/poseidon/primitives/mds.rs

View workflow job for this annotation

GitHub Actions / Test on macOS-latest

unused variable: `diff`
// We can invert freely; by construction, the elements of xs are distinct.
acc * (x - x_m) * diff.invert().unwrap()
acc * (x - x_m) * (x_j - x_m).invert().unwrap()
}
})
};
Expand Down

0 comments on commit af860b2

Please sign in to comment.