Remove unnecessary .into_iter()

This commit is contained in:
link2xt
2023-02-14 21:04:29 +00:00
parent a203cde400
commit e11d7c0444

View File

@@ -1515,7 +1515,6 @@ fn split_address_book(book: &str) -> Vec<(&str, &str)> {
book.lines()
.collect::<Vec<&str>>()
.chunks(2)
.into_iter()
.filter_map(|chunk| {
let name = chunk.first()?;
let addr = chunk.get(1)?;