From eaa4fcbbdea69c8fcf5b6cdc1ff3c259be3e09cb Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sun, 21 Mar 2021 00:17:09 +0200 Subject: Less reallocations --- crates/ide_db/src/helpers/import_assets.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'crates/ide_db/src/helpers') diff --git a/crates/ide_db/src/helpers/import_assets.rs b/crates/ide_db/src/helpers/import_assets.rs index 0da7a1a9d..1881c746f 100644 --- a/crates/ide_db/src/helpers/import_assets.rs +++ b/crates/ide_db/src/helpers/import_assets.rs @@ -267,7 +267,6 @@ fn path_applicable_imports( AssocItemSearch::Exclude, Some(DEFAULT_QUERY_SEARCH_LIMIT), ) - .into_iter() .filter_map(|item| { let mod_path = mod_path(item)?; Some(LocatedImport::new(mod_path.clone(), item, item, Some(mod_path))) @@ -285,7 +284,6 @@ fn path_applicable_imports( AssocItemSearch::Include, Some(DEFAULT_QUERY_SEARCH_LIMIT), ) - .into_iter() .filter_map(|item| { import_for_item( sema.db, @@ -430,7 +428,6 @@ fn trait_applicable_items( AssocItemSearch::AssocItemsOnly, Some(DEFAULT_QUERY_SEARCH_LIMIT), ) - .into_iter() .filter_map(|input| item_as_assoc(db, input)) .filter_map(|assoc| { let assoc_item_trait = assoc.containing_trait(db)?; -- cgit v1.2.3