From 3dc7b460b44e7df0342a49230c4aca3131daf352 Mon Sep 17 00:00:00 2001 From: malik672 Date: Sat, 9 Mar 2024 19:40:54 +0100 Subject: [PATCH] fix readme with a better example --- src/utils/sqrt.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/sqrt.rs b/src/utils/sqrt.rs index 2046044..da3670e 100644 --- a/src/utils/sqrt.rs +++ b/src/utils/sqrt.rs @@ -7,6 +7,8 @@ use crate::prelude::*; /// * `value`: the value for which to compute the square root, rounded down /// /// returns: BigInt + +#[allow(clippy::assigning_clones)] pub fn sqrt(value: &BigInt) -> Result { if !value >= Zero::zero() { return Err(Error::Incorrect());