aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_impl
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-24 16:29:44 +0000
committerAleksey Kladov <[email protected]>2019-01-24 16:29:44 +0000
commit11dda8a0fb905a1b41a64001d564632eb062b9aa (patch)
tree2f7214d22d0ee232fbaa23b951b322b9f5299650 /crates/ra_hir/src/code_model_impl
parenta7c0336a7516e4973a9efb86bfb97cf290441413 (diff)
remove useless aliases
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r--crates/ra_hir/src/code_model_impl/function.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs
index d8dafb10e..8a2ab5714 100644
--- a/crates/ra_hir/src/code_model_impl/function.rs
+++ b/crates/ra_hir/src/code_model_impl/function.rs
@@ -9,7 +9,7 @@ use crate::{
9 type_ref::{TypeRef, Mutability}, 9 type_ref::{TypeRef, Mutability},
10 expr::Body, 10 expr::Body,
11 impl_block::ImplBlock, 11 impl_block::ImplBlock,
12 ids::FunctionLoc, 12 ids::ItemLoc,
13}; 13};
14 14
15pub use self::scope::{FnScopes, ScopesWithSyntaxMapping, ScopeEntryWithSyntax}; 15pub use self::scope::{FnScopes, ScopesWithSyntaxMapping, ScopeEntryWithSyntax};
@@ -21,8 +21,8 @@ impl Function {
21 file_id: HirFileId, 21 file_id: HirFileId,
22 ast: &ast::FnDef, 22 ast: &ast::FnDef,
23 ) -> Function { 23 ) -> Function {
24 let loc: FunctionLoc = FunctionLoc::from_ast(db, module, file_id, ast); 24 let loc = ItemLoc::from_ast(db, module, file_id, ast);
25 let id = loc.id(db); 25 let id = db.as_ref().fns.loc2id(&loc);
26 Function { id } 26 Function { id }
27 } 27 }
28 28