Less reallocations

This commit is contained in:
Kirill Bulatov 2021-03-21 00:17:09 +02:00
parent ec731e19df
commit eaa4fcbbde
4 changed files with 12 additions and 21 deletions

View file

@ -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,