diff --git a/crates/nu-command/src/filesystem/ucp.rs b/crates/nu-command/src/filesystem/ucp.rs index d73413d721..447751220d 100644 --- a/crates/nu-command/src/filesystem/ucp.rs +++ b/crates/nu-command/src/filesystem/ucp.rs @@ -235,7 +235,7 @@ impl Command for UCp { for (sources, need_expand_tilde) in sources.iter_mut() { for src in sources.iter_mut() { 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); } } } diff --git a/crates/nu-command/src/filesystem/umv.rs b/crates/nu-command/src/filesystem/umv.rs index d5c58f30e4..27a10fbb6f 100644 --- a/crates/nu-command/src/filesystem/umv.rs +++ b/crates/nu-command/src/filesystem/umv.rs @@ -141,7 +141,7 @@ impl Command for UMv { for (files, need_expand_tilde) in files.iter_mut() { for src in files.iter_mut() { 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); } } }