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();