aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r--crates/ra_hir_def/src/nameres.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs
index 87992854a..03515309e 100644
--- a/crates/ra_hir_def/src/nameres.rs
+++ b/crates/ra_hir_def/src/nameres.rs
@@ -181,7 +181,7 @@ impl CrateDefMap {
181 db.crate_graph()[krate] 181 db.crate_graph()[krate]
182 .display_name 182 .display_name
183 .as_ref() 183 .as_ref()
184 .map(|name| name.get_name()) 184 .map(ToString::to_string)
185 .unwrap_or_default() 185 .unwrap_or_default()
186 }); 186 });
187 let def_map = { 187 let def_map = {