]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs
Show case-insensitive exact matches instead of fuzzy flyimport for short paths
[rust.git] / crates / ide_assists / src / handlers / replace_derive_with_manual_impl.rs
index 3e33c62144ea727aa2f45bf3ce55508fa2ac7eaf..46bf4d7b46361a7b7bf78f0db2b45025ebbdc431 100644 (file)
@@ -65,7 +65,7 @@ pub(crate) fn replace_derive_with_manual_impl(
     let found_traits = items_locator::items_with_name(
         &ctx.sema,
         current_crate,
-        NameToImport::Exact(trait_path.segments().last()?.to_string()),
+        NameToImport::exact_case_sensitive(trait_path.segments().last()?.to_string()),
         items_locator::AssocItemSearch::Exclude,
         Some(items_locator::DEFAULT_QUERY_SEARCH_LIMIT.inner()),
     )