mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
du: fmt fix
This commit is contained in:
parent
ef9b974c41
commit
d277603bf1
2 changed files with 3 additions and 5 deletions
|
@ -914,7 +914,7 @@ impl FromStr for Threshold {
|
||||||
|
|
||||||
if s.starts_with('-') {
|
if s.starts_with('-') {
|
||||||
// Threshold of '-0' excludes everything besides 0 sized entries
|
// 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 {
|
if size == 0 {
|
||||||
return Err(ParseSizeError::ParseFailure(s.to_string()));
|
return Err(ParseSizeError::ParseFailure(s.to_string()));
|
||||||
}
|
}
|
||||||
|
|
|
@ -552,9 +552,7 @@ fn test_du_invalid_threshold() {
|
||||||
|
|
||||||
let threshold = "-0";
|
let threshold = "-0";
|
||||||
|
|
||||||
ts.ucmd()
|
ts.ucmd().arg(format!("--threshold={threshold}")).fails();
|
||||||
.arg(format!("--threshold={threshold}"))
|
|
||||||
.fails();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue