mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:05:44 +02:00
Contentious clippy fixes (#13498)
Lints from stable or nightly toolchain that may have questionable added value. - **Contentious lint to contract into single `if let`** - **Potential false positive around `AsRef`/`Deref` fun**
This commit is contained in:
committed by
GitHub
parent
ae5fed41ed
commit
2c6b1471e1
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -156,7 +156,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user