aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2020-10-13 19:02:14 +0100
committerLukas Wirth <[email protected]>2020-10-13 19:02:14 +0100
commit01b410c69a6f79880ab078d231b0d121fac5d21a (patch)
treef73a34e1e8e3c43b401d5b5f62f7505e485ac7df /crates/assists/src/handlers
parent02b844e9fbc351a53d56398e269e5861ed1ad5c1 (diff)
Slightly cleanup import_assets module
Diffstat (limited to 'crates/assists/src/handlers')
-rw-r--r--crates/assists/src/handlers/auto_import.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/assists/src/handlers/auto_import.rs b/crates/assists/src/handlers/auto_import.rs
index 7182a2a5d..e595b5b93 100644
--- a/crates/assists/src/handlers/auto_import.rs
+++ b/crates/assists/src/handlers/auto_import.rs
@@ -63,13 +63,13 @@ pub(crate) fn auto_import(acc: &mut Assists, ctx: &AssistContext) -> Option<()>
63 63
64fn import_group_message(import_candidate: &ImportCandidate) -> GroupLabel { 64fn import_group_message(import_candidate: &ImportCandidate) -> GroupLabel {
65 let name = match import_candidate { 65 let name = match import_candidate {
66 ImportCandidate::UnqualifiedName(name) => format!("Import {}", name), 66 ImportCandidate::UnqualifiedName(candidate)
67 ImportCandidate::QualifierStart(qualifier_start) => format!("Import {}", qualifier_start), 67 | ImportCandidate::QualifierStart(candidate) => format!("Import {}", &candidate.name),
68 ImportCandidate::TraitAssocItem(_, trait_assoc_item_name) => { 68 ImportCandidate::TraitAssocItem(candidate) => {
69 format!("Import a trait for item {}", trait_assoc_item_name) 69 format!("Import a trait for item {}", &candidate.name)
70 } 70 }
71 ImportCandidate::TraitMethod(_, trait_method_name) => { 71 ImportCandidate::TraitMethod(candidate) => {
72 format!("Import a trait for method {}", trait_method_name) 72 format!("Import a trait for method {}", &candidate.name)
73 } 73 }
74 }; 74 };
75 GroupLabel(name) 75 GroupLabel(name)