Fix broken test
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good

This commit is contained in:
Timothy Warren 2021-12-08 10:39:35 -05:00
parent 65ffb15c1d
commit 541859bccf

View File

@ -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<T: ToString + ?Sized>(s: &T, radix: usize) -> BigInt {
#[allow(clippy::needless_pass_by_value)]
pub fn from_str_radix<T: ToString>(s: T, radix: usize) -> BigInt {
// Two lines due to borrow checker complaints
let input = s.to_string().to_ascii_uppercase();
let input = input.trim();