From 293cc81bf158e723155bfafbc08731a927873d48 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sun, 5 May 2019 13:28:22 -0400 Subject: Remove collect --- crates/ra_assists/src/add_missing_impl_members.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/ra_assists/src') diff --git a/crates/ra_assists/src/add_missing_impl_members.rs b/crates/ra_assists/src/add_missing_impl_members.rs index 17c2af899..23c01e747 100644 --- a/crates/ra_assists/src/add_missing_impl_members.rs +++ b/crates/ra_assists/src/add_missing_impl_members.rs @@ -53,11 +53,10 @@ fn add_missing_impl_members_inner( trait_def.syntax().descendants().find_map(ast::ItemList::cast)?.impl_items(); let impl_items = impl_item_list.impl_items(); - let trait_fns = trait_items.map(ImplItem::kind).filter_map(fn_def_opt).collect::>(); + let trait_fns = trait_items.map(ImplItem::kind).filter_map(fn_def_opt); let impl_fns = impl_items.map(ImplItem::kind).filter_map(fn_def_opt).collect::>(); trait_fns - .into_iter() .filter(|t| def_name(t).is_some()) .filter(|t| match mode { AddMissingImplMembersMode::DefaultMethodsOnly => t.body().is_some(), -- cgit v1.2.3