From cd320fac2c30bf210f4c15cb5c79585311e8c15d Mon Sep 17 00:00:00 2001 From: Shuhui Luo <107524008+shuhuiluo@users.noreply.github.com> Date: Sun, 17 Mar 2024 06:45:41 -0400 Subject: [PATCH] lint fix --- src/utils/sqrt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/sqrt.rs b/src/utils/sqrt.rs index 9f0c92c..48eeebf 100644 --- a/src/utils/sqrt.rs +++ b/src/utils/sqrt.rs @@ -28,7 +28,7 @@ pub fn sqrt(value: &BigInt) -> Result { let mut x = (value / &two) + &one; while x < z { - z = x.clone(); + z.clone_from(&x); x = ((value / &x) + &x) / &two; }