Potential false positive around AsRef
/Deref
fun
Suggested removing `&` but then the `&mut` would become invalid. Seems to be a buggy lint. Derefing should be fine
This commit is contained in:
parent
6c42f2c475
commit
eab91bc122
|
@ -235,7 +235,7 @@ impl Command for UCp {
|
||||||
for (sources, need_expand_tilde) in sources.iter_mut() {
|
for (sources, need_expand_tilde) in sources.iter_mut() {
|
||||||
for src in sources.iter_mut() {
|
for src in sources.iter_mut() {
|
||||||
if !src.is_absolute() {
|
if !src.is_absolute() {
|
||||||
*src = nu_path::expand_path_with(&src, &cwd, *need_expand_tilde);
|
*src = nu_path::expand_path_with(&*src, &cwd, *need_expand_tilde);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,7 +141,7 @@ impl Command for UMv {
|
||||||
for (files, need_expand_tilde) in files.iter_mut() {
|
for (files, need_expand_tilde) in files.iter_mut() {
|
||||||
for src in files.iter_mut() {
|
for src in files.iter_mut() {
|
||||||
if !src.is_absolute() {
|
if !src.is_absolute() {
|
||||||
*src = nu_path::expand_path_with(&src, &cwd, *need_expand_tilde);
|
*src = nu_path::expand_path_with(&*src, &cwd, *need_expand_tilde);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user