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; }