mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-17 04:06:18 +00:00
refactor/mv ~ fix cargo clippy
complaint (clippy::needless_borrow)
This commit is contained in:
parent
768b343ff9
commit
ca50eae003
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ fn rename_with_fallback(from: &Path, to: &Path) -> io::Result<()> {
|
||||||
let file_type = metadata.file_type();
|
let file_type = metadata.file_type();
|
||||||
|
|
||||||
if file_type.is_symlink() {
|
if file_type.is_symlink() {
|
||||||
rename_symlink_fallback(&from, &to)?;
|
rename_symlink_fallback(from, to)?;
|
||||||
} else if file_type.is_dir() {
|
} else if file_type.is_dir() {
|
||||||
// We remove the destination directory if it exists to match the
|
// We remove the destination directory if it exists to match the
|
||||||
// behavior of `fs::rename`. As far as I can tell, `fs_extra`'s
|
// behavior of `fs::rename`. As far as I can tell, `fs_extra`'s
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue