diff options
author | Kirill Bulatov <[email protected]> | 2021-03-20 20:54:04 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-20 20:55:34 +0000 |
commit | 879432452d15d4e9c373a6233a0cd15e22f20ef3 (patch) | |
tree | 918eb815d2da4758d00dfac387b805de6a771c11 /crates/ide_assists | |
parent | a631108d2dd0596b079b59efa37b1af00d7555db (diff) |
Docs
Diffstat (limited to 'crates/ide_assists')
-rw-r--r-- | crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs | 4 |
1 files changed, 2 insertions, 2 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 1a98c51ce..2608b56da 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 | |||
@@ -65,12 +65,12 @@ pub(crate) fn replace_derive_with_manual_impl( | |||
65 | let current_module = ctx.sema.scope(annotated_name.syntax()).module()?; | 65 | let current_module = ctx.sema.scope(annotated_name.syntax()).module()?; |
66 | let current_crate = current_module.krate(); | 66 | let current_crate = current_module.krate(); |
67 | 67 | ||
68 | let found_traits = items_locator::locate_for_name( | 68 | let found_traits = items_locator::items_with_name( |
69 | &ctx.sema, | 69 | &ctx.sema, |
70 | current_crate, | 70 | current_crate, |
71 | NameToImport::Exact(trait_token.text().to_string()), | 71 | NameToImport::Exact(trait_token.text().to_string()), |
72 | items_locator::AssocItemSearch::Exclude, | 72 | items_locator::AssocItemSearch::Exclude, |
73 | None, | 73 | Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT), |
74 | ) | 74 | ) |
75 | .into_iter() | 75 | .into_iter() |
76 | .filter_map(|item| match ModuleDef::from(item.as_module_def_id()?) { | 76 | .filter_map(|item| match ModuleDef::from(item.as_module_def_id()?) { |