mirror of
https://github.com/nushell/nushell.git
synced 2025-03-30 10:37:29 +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:
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(' ') {
|
if let Some((a, b)) = editor.split_once(' ') {
|
||||||
Ok((
|
Ok((
|
||||||
a.to_string(),
|
a.to_string(),
|
||||||
b.split(' ')
|
b.split(' ').map(|s| s.to_string()).collect::<Vec<String>>(),
|
||||||
.into_iter()
|
|
||||||
.map(|s| s.to_string())
|
|
||||||
.collect::<Vec<String>>(),
|
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
Ok((editor, Vec::new()))
|
Ok((editor, Vec::new()))
|
||||||
|
@ -141,7 +141,6 @@ fn element_to_value(n: &roxmltree::Node, info: &ParsingInfo) -> Value {
|
|||||||
|
|
||||||
let content: Vec<Value> = n
|
let content: Vec<Value> = n
|
||||||
.children()
|
.children()
|
||||||
.into_iter()
|
|
||||||
.filter_map(|node| from_node_to_value(&node, info))
|
.filter_map(|node| from_node_to_value(&node, info))
|
||||||
.collect();
|
.collect();
|
||||||
let content = Value::list(content, span);
|
let content = Value::list(content, span);
|
||||||
|
Loading…
Reference in New Issue
Block a user