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:
Stefan Holderbach 2023-04-02 16:23:19 +02:00 committed by GitHub
parent 0b9fc4ff3a
commit 61fa826159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -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()))

View File

@ -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);