forked from extern/nushell
Clippy with the current stable toolchain (#6615)
Fix lints that are coming with rust 1.64 Passes with the earlier toolchain from `rust-toolchain.toml` as well.
This commit is contained in:
committed by
GitHub
parent
f44473d510
commit
f7647584a3
@ -154,10 +154,7 @@ impl Command for Mv {
|
||||
}
|
||||
|
||||
if let Some(Ok(_filename)) = some_if_source_is_destination {
|
||||
sources = sources
|
||||
.into_iter()
|
||||
.filter(|f| matches!(f, Ok(f) if !destination.starts_with(f)))
|
||||
.collect();
|
||||
sources.retain(|f| matches!(f, Ok(f) if !destination.starts_with(f)));
|
||||
}
|
||||
|
||||
let span = call.head;
|
||||
|
Reference in New Issue
Block a user