1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37: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

@ -75,7 +75,7 @@ fn test_echo() {
#[test]
fn test_head_count() {
let repeat_limit = 5;
let input_seq = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let input_seq = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let input = input_seq
.iter()
.map(ToString::to_string)
@ -106,7 +106,7 @@ fn test_head_count() {
#[test]
fn test_repeat() {
let repeat_limit = 15000;
let input_seq = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let input_seq = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let input = input_seq
.iter()
.map(ToString::to_string)