Skip to content

Commit

Permalink
Merge pull request #6052 from sylvestre/clippy43
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
cakebaker committed Mar 10, 2024
2 parents a578fe9 + dcfb03a commit 1eaa87c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3781,7 +3781,7 @@ fn test_acl_preserve() {
// calling the command directly. xattr requires some dev packages to be installed
// and it adds a complex dependency just for a test
match Command::new("setfacl")
.args(["-m", "group::rwx", &path1])
.args(["-m", "group::rwx", path1])
.status()
.map(|status| status.code())
{
Expand Down
1 change: 1 addition & 0 deletions tests/by-util/test_date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ fn test_date_for_no_permission_file() {
use std::os::unix::fs::PermissionsExt;
let file = std::fs::OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(at.plus(FILE))
.unwrap();
Expand Down
2 changes: 1 addition & 1 deletion tests/by-util/test_mv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ fn test_acl() {
// calling the command directly. xattr requires some dev packages to be installed
// and it adds a complex dependency just for a test
match Command::new("setfacl")
.args(["-m", "group::rwx", &path1])
.args(["-m", "group::rwx", path1])
.status()
.map(|status| status.code())
{
Expand Down

0 comments on commit 1eaa87c

Please sign in to comment.