Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo committed Mar 17, 2024
1 parent 913695f commit cd320fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sqrt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn sqrt(value: &BigInt) -> Result<BigInt, Error> {
let mut x = (value / &two) + &one;

while x < z {
z = x.clone();
z.clone_from(&x);
x = ((value / &x) + &x) / &two;
}

Expand Down

0 comments on commit cd320fa

Please sign in to comment.