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_assists/src/handlers/replace_derive_with_manual_impl.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'crates/ide_assists/src') diff --git a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs b/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs index 2608b56da..4f0ef52ca 100644 --- a/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs +++ b/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs @@ -72,7 +72,6 @@ pub(crate) fn replace_derive_with_manual_impl( items_locator::AssocItemSearch::Exclude, Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT), ) - .into_iter() .filter_map(|item| match ModuleDef::from(item.as_module_def_id()?) { ModuleDef::Trait(trait_) => Some(trait_), _ => None, -- cgit v1.2.3