Merge pull request #2310 from sylvestre/clippy2

Fix a clippy warning
This commit is contained in:
Terts Diepraam 2021-05-30 23:06:10 +02:00 committed by GitHub
commit 99fb2c5aac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ fn test_du_d_flag() {
// TODO: gnu `du` doesn't use trailing "/" here
// result.stdout_str(), result_reference.stdout_str()
result.stdout_str().trim_end_matches("/\n"),
result_reference.stdout_str().trim_end_matches("\n")
result_reference.stdout_str().trim_end_matches('\n')
);
return;
}