diff options
author | Kirill Bulatov <[email protected]> | 2021-03-20 22:17:09 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-21 09:45:37 +0000 |
commit | eaa4fcbbdea69c8fcf5b6cdc1ff3c259be3e09cb (patch) | |
tree | 23e0c63b041a1a172dab72e7979c8d6dae180248 /crates/ide_assists/src/handlers | |
parent | ec731e19df6444b2113c273fc740fd3d5c866b18 (diff) |
Less reallocations
Diffstat (limited to 'crates/ide_assists/src/handlers')
-rw-r--r-- | crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs | 1 |
1 files changed, 0 insertions, 1 deletions
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( | |||
72 | items_locator::AssocItemSearch::Exclude, | 72 | items_locator::AssocItemSearch::Exclude, |
73 | Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT), | 73 | Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT), |
74 | ) | 74 | ) |
75 | .into_iter() | ||
76 | .filter_map(|item| match ModuleDef::from(item.as_module_def_id()?) { | 75 | .filter_map(|item| match ModuleDef::from(item.as_module_def_id()?) { |
77 | ModuleDef::Trait(trait_) => Some(trait_), | 76 | ModuleDef::Trait(trait_) => Some(trait_), |
78 | _ => None, | 77 | _ => None, |