1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Fix some clippy warnings

Fixed with `cargo clippy --features unix  --fix`
and manually
This commit is contained in:
Sylvestre Ledru 2022-10-12 22:04:21 +02:00
parent 32b1fc6420
commit 6e14dea73b
32 changed files with 122 additions and 126 deletions

View file

@ -8,7 +8,7 @@ use std::ffi::OsStr;
fn test_help() {
for help_flg in ["-h", "--help"] {
new_ucmd!()
.arg(&help_flg)
.arg(help_flg)
.succeeds()
.no_stderr()
.stdout_contains("USAGE:");
@ -19,7 +19,7 @@ fn test_help() {
fn test_version() {
for version_flg in ["-V", "--version"] {
assert!(new_ucmd!()
.arg(&version_flg)
.arg(version_flg)
.succeeds()
.no_stderr()
.stdout_str()