From a045516f0f022d98f0b4d5f0dc014e154645ee9f Mon Sep 17 00:00:00 2001 From: Nicole Graus Date: Wed, 30 Oct 2024 11:15:13 -0300 Subject: [PATCH] Update math/src/circle/point.rs Co-authored-by: Ivan Litteri <67517699+ilitteri@users.noreply.github.com> --- math/src/circle/point.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/math/src/circle/point.rs b/math/src/circle/point.rs index e512eb9e3..9c6e0662c 100644 --- a/math/src/circle/point.rs +++ b/math/src/circle/point.rs @@ -102,7 +102,8 @@ impl> Add<&CirclePoint> for CirclePoint { impl> Mul for CirclePoint { type Output = CirclePoint; - fn mul(self, mut scalar: u128) -> Self { + fn mul(self, scalar: u128) -> Self { + let mut scalar = scalar; let mut res = Self::zero(); let mut cur = self; loop {