Fix broken test
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
This commit is contained in:
parent
65ffb15c1d
commit
541859bccf
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user