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/db.rs | |
parent | 11122e29b7ec5bc2e08822deaa6fdf9a1cc8ffca (diff) |
nameify structs&enums
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index ba43a4502..b41a7429a 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -1,13 +1,10 @@ | |||
1 | use std::sync::Arc; | 1 | use std::sync::Arc; |
2 | 2 | ||
3 | use ra_syntax::{ | 3 | use ra_syntax::SyntaxNode; |
4 | SmolStr, | ||
5 | SyntaxNode, | ||
6 | }; | ||
7 | use ra_db::{SourceRootId, LocationIntener, SyntaxDatabase, FileId, Cancelable}; | 4 | use ra_db::{SourceRootId, LocationIntener, SyntaxDatabase, FileId, Cancelable}; |
8 | 5 | ||
9 | use crate::{ | 6 | use crate::{ |
10 | DefLoc, DefId, | 7 | DefLoc, DefId, Name, |
11 | SourceFileItems, SourceItemId, | 8 | SourceFileItems, SourceItemId, |
12 | query_definitions, | 9 | query_definitions, |
13 | FnScopes, | 10 | FnScopes, |
@@ -47,7 +44,7 @@ pub trait HirDatabase: SyntaxDatabase | |||
47 | use fn query_definitions::type_for_def; | 44 | use fn query_definitions::type_for_def; |
48 | } | 45 | } |
49 | 46 | ||
50 | fn type_for_field(def_id: DefId, field: SmolStr) -> Cancelable<Ty> { | 47 | fn type_for_field(def_id: DefId, field: Name) -> Cancelable<Ty> { |
51 | type TypeForFieldQuery; | 48 | type TypeForFieldQuery; |
52 | use fn query_definitions::type_for_field; | 49 | use fn query_definitions::type_for_field; |
53 | } | 50 | } |