From 723a1a309c4d987ec54c4c1f7bfe3686dc8d5a29 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 15 Nov 2023 09:42:41 -0700 Subject: [PATCH] elliptic-curve: have `LinearCombinationExt` allow `?Sized` (#1406) ...as the `PointsAndScalars` generic parameter, so we can accept slices --- elliptic-curve/src/ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index 5931d59fa..9043b29c7 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -167,7 +167,7 @@ pub trait LinearCombination: Group { // TODO(tarcieri): replace the current `LinearCombination` with this in the next release pub trait LinearCombinationExt: group::Curve where - PointsAndScalars: AsRef<[(Self, Self::Scalar)]>, + PointsAndScalars: AsRef<[(Self, Self::Scalar)]> + ?Sized, { /// Calculates `x1 * k1 + ... + xn * kn`. fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self {