1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Fix clippy warnings

This commit is contained in:
Sylvestre Ledru 2024-03-09 22:30:22 +01:00
parent b34d410ade
commit dcfb03aad6
3 changed files with 3 additions and 2 deletions

View file

@ -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())
{

View file

@ -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();

View file

@ -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())
{