diff options
author | Kirill Bulatov <[email protected]> | 2020-03-16 10:03:43 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-03-16 10:03:43 +0000 |
commit | 92fd430dab8cd0c7a476ccc5db87607f3f0f00a2 (patch) | |
tree | 62e0115f59514dbf465182d64e5187aa6fbd50df /crates/ra_hir_def | |
parent | 059ed25a3eea97f370c190803318d5cb7885e1a9 (diff) |
Use Display instead of a custom method
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 2 |
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 = { |