Skip to content

Commit

Permalink
clippy: Remove some calls to into_iter
Browse files Browse the repository at this point in the history
These calls accept `IntoIterator`, so the caller doesn't need to
call `.into_iter()`.
  • Loading branch information
waywardmonkeys authored and elrnv committed Jul 9, 2024
1 parent 6532467 commit 2737f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ impl Vtk {
Piece::Loaded(data_set) => (pick_data_set_pieces(*data_set), None),
p => (None, Some(p)),
};
loaded.into_iter().flatten().chain(rest.into_iter())
loaded.into_iter().flatten().chain(rest)
})
.collect();
}
Expand Down Expand Up @@ -1616,7 +1616,7 @@ impl Attribute {
/// ```
pub fn with_field_data(mut self, arrays: impl IntoIterator<Item = FieldArray>) -> Self {
if let Attribute::Field { data_array, .. } = &mut self {
data_array.extend(arrays.into_iter());
data_array.extend(arrays);
}
self
}
Expand Down

0 comments on commit 2737f77

Please sign in to comment.