diff --git a/src/arkworks/te_sw_map.rs b/src/arkworks/te_sw_map.rs index 4598c9d..a4c84d0 100644 --- a/src/arkworks/te_sw_map.rs +++ b/src/arkworks/te_sw_map.rs @@ -52,7 +52,7 @@ pub trait SWMapping { fn into_sw(self) -> WeierstrassAffine; - fn to_sw_slice(other: &[Self]) -> Cow<[WeierstrassAffine]> + fn to_sw_slice(slice: &[Self]) -> Cow<[WeierstrassAffine]> where Self: Sized; } @@ -69,8 +69,8 @@ impl SWMapping for WeierstrassAffine { } #[inline(always)] - fn to_sw_slice(other: &[Self]) -> Cow<[WeierstrassAffine]> { - Cow::Borrowed(other) + fn to_sw_slice(slice: &[Self]) -> Cow<[WeierstrassAffine]> { + Cow::Borrowed(slice) } } @@ -90,16 +90,16 @@ impl SWMapping for EdwardsAffine { } #[inline(always)] - fn to_sw_slice(other: &[Self]) -> Cow<[WeierstrassAffine]> { + fn to_sw_slice(slice: &[Self]) -> Cow<[WeierstrassAffine]> { let pks; #[cfg(feature = "parallel")] { use rayon::prelude::*; - pks = other.par_iter().map(|p| p.into_sw()).collect(); + pks = slice.par_iter().map(|p| p.into_sw()).collect(); } #[cfg(not(feature = "parallel"))] { - pks = other.iter().map(|p| p.into_sw()).collect(); + pks = slice.iter().map(|p| p.into_sw()).collect(); } Cow::Owned(pks) }