From b7643d2bda59286dfa46b969a6130978b43b79a8 Mon Sep 17 00:00:00 2001 From: Sven Moog Date: Mon, 5 Jun 2023 11:19:43 +0200 Subject: [PATCH] cargo clippy 0.1.70 falsely marks a clone as redundant. Added ignore for this warning. --- src/integer/z/arithmetic/root.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/integer/z/arithmetic/root.rs b/src/integer/z/arithmetic/root.rs index 7910565b6..7df50a9fb 100644 --- a/src/integer/z/arithmetic/root.rs +++ b/src/integer/z/arithmetic/root.rs @@ -90,6 +90,8 @@ impl Z { // https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Continued_fraction_expansion let two_int_res = &integer_result * Q::from(2); + // cargo clippy 0.1.70 falsely marks this clone as redundant. + #[allow(clippy::redundant_clone)] let mut temp = two_int_res.clone(); // After the while loop, temp is inverted