diff options
author | Kirill Bulatov <[email protected]> | 2020-10-02 19:38:22 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-10-02 19:38:22 +0100 |
commit | 9d19e5b962f77259dd1334b9edb4da4de54f0987 (patch) | |
tree | 46a6713bc101e450377ec225573635641438da97 /crates/hir | |
parent | 99952f3be254394a5c70ce8fb8436d76c779ed71 (diff) |
Properly name the field
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 f3388da32..a19b0fad7 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -98,8 +98,8 @@ 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<CrateName> { | 101 | pub fn declaration_name(self, db: &dyn HirDatabase) -> Option<CrateName> { |
102 | db.crate_graph()[self.id].display_name.clone() | 102 | db.crate_graph()[self.id].declaration_name.clone() |
103 | } | 103 | } |
104 | 104 | ||
105 | pub fn query_external_importables( | 105 | pub fn query_external_importables( |