diff --git a/crates/nu-command/src/env/config/utils.rs b/crates/nu-command/src/env/config/utils.rs index 4e1bfb5bf..2bef0d1d4 100644 --- a/crates/nu-command/src/env/config/utils.rs +++ b/crates/nu-command/src/env/config/utils.rs @@ -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::>(), + b.split(' ').map(|s| s.to_string()).collect::>(), )) } else { Ok((editor, Vec::new())) diff --git a/crates/nu-command/src/formats/from/xml.rs b/crates/nu-command/src/formats/from/xml.rs index 0fb80f6e0..f1b0b0bf8 100644 --- a/crates/nu-command/src/formats/from/xml.rs +++ b/crates/nu-command/src/formats/from/xml.rs @@ -141,7 +141,6 @@ fn element_to_value(n: &roxmltree::Node, info: &ParsingInfo) -> Value { let content: Vec = n .children() - .into_iter() .filter_map(|node| from_node_to_value(&node, info)) .collect(); let content = Value::list(content, span);