mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01: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:
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()))
|
||||
|
@ -141,7 +141,6 @@ fn element_to_value(n: &roxmltree::Node, info: &ParsingInfo) -> Value {
|
||||
|
||||
let content: Vec<Value> = n
|
||||
.children()
|
||||
.into_iter()
|
||||
.filter_map(|node| from_node_to_value(&node, info))
|
||||
.collect();
|
||||
let content = Value::list(content, span);
|
||||
|
Loading…
Reference in New Issue
Block a user