mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Fix some clippy warnings
This commit is contained in:
parent
682f488720
commit
7c9f4ba92a
23 changed files with 50 additions and 55 deletions
|
@ -173,7 +173,6 @@ fn test_random() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
let factor = factor;
|
||||
|
||||
match product.checked_mul(factor) {
|
||||
Some(p) => {
|
||||
|
@ -317,7 +316,7 @@ fn run(input_string: &[u8], output_string: &[u8]) {
|
|||
fn test_primes_with_exponents() {
|
||||
let mut input_string = String::new();
|
||||
let mut output_string = String::new();
|
||||
for primes in PRIMES_BY_BITS.iter() {
|
||||
for primes in PRIMES_BY_BITS {
|
||||
for &prime in *primes {
|
||||
input_string.push_str(&(format!("{prime} "))[..]);
|
||||
output_string.push_str(&(format!("{prime}: {prime}\n"))[..]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue