diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-28 13:04:52 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-28 13:04:52 +0000 |
commit | 2c7f6b573e9b6133cc147a529dd2a23119bb4ae5 (patch) | |
tree | 903f9f2ded4a197c2736b4459cda89c6639dd277 /crates/ra_hir/src | |
parent | 16030528b53d38e24c1e5733aa4cc46058d0bbd1 (diff) | |
parent | e823c578c9f6886fe9db9767cb81e75a6c56bf15 (diff) |
Merge #2441
2441: Use InFile for AstId r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model/src.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model/src.rs b/crates/ra_hir/src/code_model/src.rs index 6fd4e7987..9a755704f 100644 --- a/crates/ra_hir/src/code_model/src.rs +++ b/crates/ra_hir/src/code_model/src.rs | |||
@@ -105,7 +105,7 @@ impl HasSource for TypeAlias { | |||
105 | impl HasSource for MacroDef { | 105 | impl HasSource for MacroDef { |
106 | type Ast = ast::MacroCall; | 106 | type Ast = ast::MacroCall; |
107 | fn source(self, db: &impl DefDatabase) -> InFile<ast::MacroCall> { | 107 | fn source(self, db: &impl DefDatabase) -> InFile<ast::MacroCall> { |
108 | InFile { file_id: self.id.ast_id.file_id(), value: self.id.ast_id.to_node(db) } | 108 | InFile { file_id: self.id.ast_id.file_id, value: self.id.ast_id.to_node(db) } |
109 | } | 109 | } |
110 | } | 110 | } |
111 | impl HasSource for ImplBlock { | 111 | impl HasSource for ImplBlock { |