diff options
author | Kirill Bulatov <[email protected]> | 2020-10-02 19:16:22 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-10-02 19:16:22 +0100 |
commit | 99952f3be254394a5c70ce8fb8436d76c779ed71 (patch) | |
tree | 1dd257a6e3813ff901a9ec70969640d58e90aee6 /crates/hir | |
parent | cae2e859ffbf2b435c8675838e450b66d4c6153e (diff) |
Fix the hover dash issues
Diffstat (limited to 'crates/hir')
-rw-r--r-- | crates/hir/src/code_model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs index 5721a66c4..f3388da32 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -2,7 +2,7 @@ | |||
2 | use std::{iter, sync::Arc}; | 2 | use std::{iter, sync::Arc}; |
3 | 3 | ||
4 | use arrayvec::ArrayVec; | 4 | use arrayvec::ArrayVec; |
5 | use base_db::{CrateId, Edition, FileId}; | 5 | use base_db::{CrateId, CrateName, Edition, FileId}; |
6 | use either::Either; | 6 | use either::Either; |
7 | use hir_def::{ | 7 | use hir_def::{ |
8 | adt::ReprKind, | 8 | adt::ReprKind, |
@@ -98,7 +98,7 @@ impl Crate { | |||
98 | db.crate_graph()[self.id].edition | 98 | db.crate_graph()[self.id].edition |
99 | } | 99 | } |
100 | 100 | ||
101 | pub fn display_name(self, db: &dyn HirDatabase) -> Option<String> { | 101 | pub fn display_name(self, db: &dyn HirDatabase) -> Option<CrateName> { |
102 | db.crate_graph()[self.id].display_name.clone() | 102 | db.crate_graph()[self.id].display_name.clone() |
103 | } | 103 | } |
104 | 104 | ||