diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 68c5f407..9083bd8a 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -364,6 +364,7 @@ impl Pairing { } } + #[allow(clippy::too_many_arguments)] pub fn mul_n_aggregate( &mut self, pk: &dyn Any, @@ -1208,6 +1209,7 @@ macro_rules! sig_variant_impl { // https://ethresear.ch/t/fast-verification-of-multiple-bls-signatures/5407 #[cfg(feature = "std")] + #[allow(clippy::too_many_arguments)] pub fn verify_multiple_aggregate_signatures( msgs: &[&[u8]], dst: &[u8], diff --git a/bindings/rust/src/pippenger-no_std.rs b/bindings/rust/src/pippenger-no_std.rs index 42311b2a..c316e87a 100644 --- a/bindings/rust/src/pippenger-no_std.rs +++ b/bindings/rust/src/pippenger-no_std.rs @@ -51,6 +51,7 @@ macro_rules! pippenger_mult_impl { let mut ret = Self { points: Vec::with_capacity(npoints), }; + #[allow(clippy::uninit_vec)] unsafe { ret.points.set_len(npoints) }; let p: [*const $point; 2] = [&points[0], ptr::null()]; @@ -74,6 +75,7 @@ macro_rules! pippenger_mult_impl { unsafe { let mut scratch: Vec = Vec::with_capacity($scratch_sizeof(npoints) / 8); + #[allow(clippy::uninit_vec)] scratch.set_len(scratch.capacity()); $multi_scalar_mult( &mut ret, diff --git a/bindings/rust/src/pippenger.rs b/bindings/rust/src/pippenger.rs index 50c8347b..bdaec95a 100644 --- a/bindings/rust/src/pippenger.rs +++ b/bindings/rust/src/pippenger.rs @@ -131,6 +131,7 @@ macro_rules! pippenger_mult_impl { unsafe { let mut scratch: Vec = Vec::with_capacity($scratch_sizeof(npoints) / 8); + #[allow(clippy::uninit_vec)] scratch.set_len(scratch.capacity()); let mut ret = <$point>::default(); $multi_scalar_mult( @@ -151,6 +152,7 @@ macro_rules! pippenger_mult_impl { // |grid[]| holds "coordinates" and place for result let mut grid: Vec<(tile, Cell<$point>)> = Vec::with_capacity(nx * ny); + #[allow(clippy::uninit_vec)] unsafe { grid.set_len(grid.capacity()) }; let dx = npoints / nx; let mut y = window * (ny - 1);