mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
lint: fix clippy::needless_borrows_for_generic_args
in perms.rs
This commit is contained in:
parent
b66d6dffcf
commit
eb3fac3567
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ mod tests {
|
||||||
fn test_symlink_slash() {
|
fn test_symlink_slash() {
|
||||||
let temp_dir = tempdir().unwrap();
|
let temp_dir = tempdir().unwrap();
|
||||||
let symlink_path = temp_dir.path().join("symlink");
|
let symlink_path = temp_dir.path().join("symlink");
|
||||||
unix::fs::symlink(PathBuf::from("/"), &symlink_path).unwrap();
|
unix::fs::symlink(PathBuf::from("/"), symlink_path).unwrap();
|
||||||
let symlink_path_slash = temp_dir.path().join("symlink/");
|
let symlink_path_slash = temp_dir.path().join("symlink/");
|
||||||
// Must return true, we're about to "accidentally" recurse on "/",
|
// Must return true, we're about to "accidentally" recurse on "/",
|
||||||
// since "symlink/" always counts as an already-entered directory
|
// since "symlink/" always counts as an already-entered directory
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue