mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Fix clippy warnings
This commit is contained in:
parent
b34d410ade
commit
dcfb03aad6
3 changed files with 3 additions and 2 deletions
|
@ -3781,7 +3781,7 @@ fn test_acl_preserve() {
|
||||||
// calling the command directly. xattr requires some dev packages to be installed
|
// calling the command directly. xattr requires some dev packages to be installed
|
||||||
// and it adds a complex dependency just for a test
|
// and it adds a complex dependency just for a test
|
||||||
match Command::new("setfacl")
|
match Command::new("setfacl")
|
||||||
.args(["-m", "group::rwx", &path1])
|
.args(["-m", "group::rwx", path1])
|
||||||
.status()
|
.status()
|
||||||
.map(|status| status.code())
|
.map(|status| status.code())
|
||||||
{
|
{
|
||||||
|
|
|
@ -294,6 +294,7 @@ fn test_date_for_no_permission_file() {
|
||||||
use std::os::unix::fs::PermissionsExt;
|
use std::os::unix::fs::PermissionsExt;
|
||||||
let file = std::fs::OpenOptions::new()
|
let file = std::fs::OpenOptions::new()
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(at.plus(FILE))
|
.open(at.plus(FILE))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
@ -1590,7 +1590,7 @@ fn test_acl() {
|
||||||
// calling the command directly. xattr requires some dev packages to be installed
|
// calling the command directly. xattr requires some dev packages to be installed
|
||||||
// and it adds a complex dependency just for a test
|
// and it adds a complex dependency just for a test
|
||||||
match Command::new("setfacl")
|
match Command::new("setfacl")
|
||||||
.args(["-m", "group::rwx", &path1])
|
.args(["-m", "group::rwx", path1])
|
||||||
.status()
|
.status()
|
||||||
.map(|status| status.code())
|
.map(|status| status.code())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue