mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 14:07:46 +00:00
refactor/rmdir ~ fix cargo clippy
complaint (clippy::needless_borrow)
This commit is contained in:
parent
84e08cd071
commit
2f7c488425
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ fn remove(dirs: Vec<String>, ignore: bool, parents: bool, verbose: bool) -> Resu
|
||||||
|
|
||||||
for dir in &dirs {
|
for dir in &dirs {
|
||||||
let path = Path::new(&dir[..]);
|
let path = Path::new(&dir[..]);
|
||||||
r = remove_dir(&path, ignore, verbose).and(r);
|
r = remove_dir(path, ignore, verbose).and(r);
|
||||||
if parents {
|
if parents {
|
||||||
let mut p = path;
|
let mut p = path;
|
||||||
while let Some(new_p) = p.parent() {
|
while let Some(new_p) = p.parent() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue