diff options
author | Aleksey Kladov <[email protected]> | 2018-12-28 18:34:58 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-12-28 18:34:58 +0000 |
commit | 792899587647f5aa0293c2588173677682187c0a (patch) | |
tree | 616bcd980ac69eb5070c1e7a6d90ebee71cb7348 /crates/ra_hir/src/query_definitions.rs | |
parent | 11122e29b7ec5bc2e08822deaa6fdf9a1cc8ffca (diff) |
nameify structs&enums
Diffstat (limited to 'crates/ra_hir/src/query_definitions.rs')
-rw-r--r-- | crates/ra_hir/src/query_definitions.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_hir/src/query_definitions.rs b/crates/ra_hir/src/query_definitions.rs index 56e3f7e9d..016d86ee6 100644 --- a/crates/ra_hir/src/query_definitions.rs +++ b/crates/ra_hir/src/query_definitions.rs | |||
@@ -5,7 +5,7 @@ use std::{ | |||
5 | 5 | ||
6 | use rustc_hash::FxHashMap; | 6 | use rustc_hash::FxHashMap; |
7 | use ra_syntax::{ | 7 | use ra_syntax::{ |
8 | AstNode, SyntaxNode, SmolStr, | 8 | AstNode, SyntaxNode, |
9 | ast::{self, NameOwner, ModuleItemOwner} | 9 | ast::{self, NameOwner, ModuleItemOwner} |
10 | }; | 10 | }; |
11 | use ra_db::{SourceRootId, FileId, Cancelable,}; | 11 | use ra_db::{SourceRootId, FileId, Cancelable,}; |
@@ -39,11 +39,7 @@ pub(super) fn type_for_def(db: &impl HirDatabase, def_id: DefId) -> Cancelable<T | |||
39 | ty::type_for_def(db, def_id) | 39 | ty::type_for_def(db, def_id) |
40 | } | 40 | } |
41 | 41 | ||
42 | pub(super) fn type_for_field( | 42 | pub(super) fn type_for_field(db: &impl HirDatabase, def_id: DefId, field: Name) -> Cancelable<Ty> { |
43 | db: &impl HirDatabase, | ||
44 | def_id: DefId, | ||
45 | field: SmolStr, | ||
46 | ) -> Cancelable<Ty> { | ||
47 | ty::type_for_field(db, def_id, field) | 43 | ty::type_for_field(db, def_id, field) |
48 | } | 44 | } |
49 | 45 | ||