diff --git a/src/uu/du/src/du.rs b/src/uu/du/src/du.rs index aba06b138..5e4feee8b 100644 --- a/src/uu/du/src/du.rs +++ b/src/uu/du/src/du.rs @@ -912,9 +912,9 @@ impl FromStr for Threshold { let size = parse_size(&s[offset..])?; - if s.starts_with('-') { + if s.starts_with('-') { // Threshold of '-0' excludes everything besides 0 sized entries - // GNU's du threats '-0' as an invalid argument + // GNU's du threats '-0' as an invalid argument if size == 0 { return Err(ParseSizeError::ParseFailure(s.to_string())); } diff --git a/tests/by-util/test_du.rs b/tests/by-util/test_du.rs index 081a6016f..d69eaaf99 100644 --- a/tests/by-util/test_du.rs +++ b/tests/by-util/test_du.rs @@ -552,9 +552,7 @@ fn test_du_invalid_threshold() { let threshold = "-0"; - ts.ucmd() - .arg(format!("--threshold={threshold}")) - .fails(); + ts.ucmd().arg(format!("--threshold={threshold}")).fails(); } #[test]