From 344cfffbd38fde130225df35f36259872754bd3a Mon Sep 17 00:00:00 2001 From: Achim Schneider Date: Sat, 18 Mar 2023 17:06:12 +0100 Subject: [PATCH] use into --- primitives/arkworks/src/utils.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/primitives/arkworks/src/utils.rs b/primitives/arkworks/src/utils.rs index 5d15cdd1c831f..5d78b831979e8 100644 --- a/primitives/arkworks/src/utils.rs +++ b/primitives/arkworks/src/utils.rs @@ -26,12 +26,12 @@ pub fn multi_miller_loop_generic( let g1: Vec<_> = a_vec .chunks(::G1Affine::generator().serialized_size(Compress::No)) .into_iter() - .map(|elem| deserialize_argument::<::G1Affine>(elem)) + .map(|elem| deserialize_argument::<::G1Affine>(elem.into())) .collect(); let g2: Vec<_> = b_vec .chunks(::G2Affine::generator().serialized_size(Compress::No)) .into_iter() - .map(|elem| deserialize_argument::<::G2Affine>(elem)) + .map(|elem| deserialize_argument::<::G2Affine>(elem.into())) .collect(); let result = Curve::multi_miller_loop(g1, g2); @@ -56,12 +56,12 @@ pub fn msm_g1_generic(bases: Vec, scalars: Vec) -> Vec = bases .chunks(::G1Affine::generator().serialized_size(Compress::No)) .into_iter() - .map(|a| deserialize_argument::<::G1Affine>(a)) + .map(|a| deserialize_argument::<::G1Affine>(a.into())) .collect(); let scalars: Vec<_> = scalars .chunks(Curve::ScalarField::zero().serialized_size(Compress::No)) .into_iter() - .map(|a| deserialize_argument::(a)) + .map(|a| deserialize_argument::(a.into())) .collect(); let result = @@ -74,12 +74,12 @@ pub fn msm_g2_generic(bases: Vec, scalars: Vec) -> Vec = bases .chunks(::G2Affine::generator().serialized_size(Compress::No)) .into_iter() - .map(|a| deserialize_argument::<::G2Affine>(a)) + .map(|a| deserialize_argument::<::G2Affine>(a.into())) .collect(); let scalars: Vec<_> = scalars .chunks(Curve::ScalarField::zero().serialized_size(Compress::No)) .into_iter() - .map(|a| deserialize_argument::(a)) + .map(|a| deserialize_argument::(a.into())) .collect(); let result =