blahaj::math: make clippy happy

This commit is contained in:
Ryan Heywood 2024-11-16 19:18:43 -05:00
parent de314fed2c
commit f10fef2c88
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ pub fn random_polynomial<R: rand::Rng>(s: GF256, k: u8, rng: &mut R) -> Vec<GF25
// Each polynomial corresponds to one byte chunk of the original secret. // Each polynomial corresponds to one byte chunk of the original secret.
// The iterator will start at `x = 1` and end at `x = 255`. // The iterator will start at `x = 1` and end at `x = 255`.
pub fn get_evaluator(polys: Vec<Vec<GF256>>) -> impl Iterator<Item = Share> { pub fn get_evaluator(polys: Vec<Vec<GF256>>) -> impl Iterator<Item = Share> {
(1..=u8::max_value()).map(GF256).map(move |x| Share { (1..=u8::MAX).map(GF256).map(move |x| Share {
x: x.clone(), x: x.clone(),
y: polys y: polys
.iter() .iter()