1
Fork 0
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:
Sylvestre Ledru 2023-08-21 16:21:02 -04:00 committed by GitHub
commit 0b9c829bce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 54 additions and 58 deletions

View file

@ -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"))[..]);