diff options
author | Alex Saveau <saveau.alexandre@gmail.com> | 2022-11-06 11:40:46 -0800 |
---|---|---|
committer | Alex Saveau <saveau.alexandre@gmail.com> | 2022-11-06 11:40:46 -0800 |
commit | 58f99947bfd069390dcfaa314b06d0e5ffb76c01 (patch) | |
tree | 4176ae77cbef54ff1ee13af5785d06242953fc2c /test/test_unistd.rs | |
parent | 17833268cb3269d83766bcdb4d9cbe0e25ebd38e (diff) | |
download | nix-58f99947bfd069390dcfaa314b06d0e5ffb76c01.zip |
Run a round of clippy to fix CI
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Diffstat (limited to 'test/test_unistd.rs')
-rw-r--r-- | test/test_unistd.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_unistd.rs b/test/test_unistd.rs index 8ad6340c..9e20f977 100644 --- a/test/test_unistd.rs +++ b/test/test_unistd.rs @@ -903,7 +903,7 @@ fn test_linkat_file() { let newfilepath = tempdir.path().join(newfilename); // Create file - File::create(&oldfilepath).unwrap(); + File::create(oldfilepath).unwrap(); // Get file descriptor for base directory let dirfd = @@ -936,7 +936,7 @@ fn test_linkat_olddirfd_none() { let newfilepath = tempdir_newfile.path().join(newfilename); // Create file - File::create(&oldfilepath).unwrap(); + File::create(oldfilepath).unwrap(); // Get file descriptor for base directory of new file let dirfd = fcntl::open( @@ -973,7 +973,7 @@ fn test_linkat_newdirfd_none() { let newfilepath = tempdir_newfile.path().join(newfilename); // Create file - File::create(&oldfilepath).unwrap(); + File::create(oldfilepath).unwrap(); // Get file descriptor for base directory of old file let dirfd = fcntl::open( @@ -1101,7 +1101,7 @@ fn test_unlinkat_dir_noremovedir() { let dirpath = tempdir.path().join(dirname); // Create dir - DirBuilder::new().recursive(true).create(&dirpath).unwrap(); + DirBuilder::new().recursive(true).create(dirpath).unwrap(); // Get file descriptor for base directory let dirfd = |