Minor perf change: vec.clone().into_iter() => vec.iter().cloned()

This commit is contained in:
Chayim Refael Friedman 2022-02-25 01:00:24 +00:00 committed by GitHub
parent 73708d4405
commit ab2af50655

View File

@ -179,7 +179,7 @@ impl Module {
//Here impl is not included as each item inside impl will be tied to the parent of
//implementing block(a struct, enum, etc), if the parent is in selected module, it will
//get updated by ADT section given below or if it is not, then we dont need to do any operation
self.body_items.clone().into_iter().for_each(|item| {
self.body_items.iter().cloned().for_each(|item| {
match_ast! {
match (item.syntax()) {
ast::Adt(it) => {