Skip to content

Commit

Permalink
Merge pull request #5838 from cakebaker/head_fix_clippy_warnings_in_t…
Browse files Browse the repository at this point in the history
…ests

head: fix clippy warnings in tests
  • Loading branch information
sylvestre committed Jan 14, 2024
2 parents e01d5f7 + aeee56b commit 22a7173
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/by-util/test_head.rs
Expand Up @@ -391,7 +391,7 @@ fn test_read_backwards_bytes_proc_fs_version() {

let args = ["-c", "-1", "/proc/version"];
let result = ts.ucmd().args(&args).succeeds();
assert!(result.stdout().len() > 0);
assert!(!result.stdout().is_empty());
}

#[cfg(all(
Expand All @@ -406,7 +406,7 @@ fn test_read_backwards_bytes_proc_fs_modules() {

let args = ["-c", "-1", "/proc/modules"];
let result = ts.ucmd().args(&args).succeeds();
assert!(result.stdout().len() > 0);
assert!(!result.stdout().is_empty());
}

#[cfg(all(
Expand All @@ -421,7 +421,7 @@ fn test_read_backwards_lines_proc_fs_modules() {

let args = ["--lines", "-1", "/proc/modules"];
let result = ts.ucmd().args(&args).succeeds();
assert!(result.stdout().len() > 0);
assert!(!result.stdout().is_empty());
}

#[cfg(all(
Expand Down

0 comments on commit 22a7173

Please sign in to comment.