mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #5182 from sylvestre/clippy_
Fix some of the recent clippy warnings
This commit is contained in:
commit
0b9c829bce
24 changed files with 54 additions and 58 deletions
|
@ -171,7 +171,6 @@ fn test_random() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
let factor = factor;
|
||||
|
||||
match product.checked_mul(factor) {
|
||||
Some(p) => {
|
||||
|
@ -315,7 +314,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