mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 16:05:01 +02:00
Fix two stable clippy
lints (#8712)
# Description Unnecessary calls to `.into_iter()` # User-Facing Changes None # Tests + Formatting Only visible on stable toolchain
This commit is contained in:
committed by
GitHub
parent
0b9fc4ff3a
commit
61fa826159
5
crates/nu-command/src/env/config/utils.rs
vendored
5
crates/nu-command/src/env/config/utils.rs
vendored
@ -35,10 +35,7 @@ pub(crate) fn get_editor(
|
||||
if let Some((a, b)) = editor.split_once(' ') {
|
||||
Ok((
|
||||
a.to_string(),
|
||||
b.split(' ')
|
||||
.into_iter()
|
||||
.map(|s| s.to_string())
|
||||
.collect::<Vec<String>>(),
|
||||
b.split(' ').map(|s| s.to_string()).collect::<Vec<String>>(),
|
||||
))
|
||||
} else {
|
||||
Ok((editor, Vec::new()))
|
||||
|
Reference in New Issue
Block a user