From 541859bccfe522129770f5d30771d5f21ea9d502 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 8 Dec 2021 10:39:35 -0500 Subject: [PATCH] Fix broken test --- src/bigint.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bigint.rs b/src/bigint.rs index 4451190..ca46895 100644 --- a/src/bigint.rs +++ b/src/bigint.rs @@ -140,7 +140,8 @@ impl BigInt { /// # Panics /// * If radix is not between 1 and 36 inclusive /// * Some branches are not yet implemented - pub fn from_str_radix(s: &T, radix: usize) -> BigInt { + #[allow(clippy::needless_pass_by_value)] + pub fn from_str_radix(s: T, radix: usize) -> BigInt { // Two lines due to borrow checker complaints let input = s.to_string().to_ascii_uppercase(); let input = input.trim();