diff options
author | Aleksey Kladov <[email protected]> | 2019-06-11 16:09:39 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-11 16:28:51 +0100 |
commit | 14b1f8763486fe7bc4a468c70fce827ae34d3d74 (patch) | |
tree | f118f481c7dc2fae8940a261c6a714a727781d9e /crates/ra_hir/src | |
parent | 26753f0e4931e2980f008015cbd709a77d71c0f3 (diff) |
minor formatting
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model/src.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir/src/code_model/src.rs b/crates/ra_hir/src/code_model/src.rs index 7d8abb39e..76adc7869 100644 --- a/crates/ra_hir/src/code_model/src.rs +++ b/crates/ra_hir/src/code_model/src.rs | |||
@@ -74,21 +74,18 @@ impl HasSource for EnumVariant { | |||
74 | } | 74 | } |
75 | impl HasSource for Function { | 75 | impl HasSource for Function { |
76 | type Ast = TreeArc<ast::FnDef>; | 76 | type Ast = TreeArc<ast::FnDef>; |
77 | |||
78 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::FnDef>> { | 77 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::FnDef>> { |
79 | self.id.source(db) | 78 | self.id.source(db) |
80 | } | 79 | } |
81 | } | 80 | } |
82 | impl HasSource for Const { | 81 | impl HasSource for Const { |
83 | type Ast = TreeArc<ast::ConstDef>; | 82 | type Ast = TreeArc<ast::ConstDef>; |
84 | |||
85 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::ConstDef>> { | 83 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::ConstDef>> { |
86 | self.id.source(db) | 84 | self.id.source(db) |
87 | } | 85 | } |
88 | } | 86 | } |
89 | impl HasSource for Static { | 87 | impl HasSource for Static { |
90 | type Ast = TreeArc<ast::StaticDef>; | 88 | type Ast = TreeArc<ast::StaticDef>; |
91 | |||
92 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::StaticDef>> { | 89 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::StaticDef>> { |
93 | self.id.source(db) | 90 | self.id.source(db) |
94 | } | 91 | } |
@@ -107,7 +104,6 @@ impl HasSource for TypeAlias { | |||
107 | } | 104 | } |
108 | impl HasSource for MacroDef { | 105 | impl HasSource for MacroDef { |
109 | type Ast = TreeArc<ast::MacroCall>; | 106 | type Ast = TreeArc<ast::MacroCall>; |
110 | |||
111 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::MacroCall>> { | 107 | fn source(self, db: &(impl DefDatabase + AstDatabase)) -> Source<TreeArc<ast::MacroCall>> { |
112 | Source { file_id: self.id.0.file_id(), ast: self.id.0.to_node(db) } | 108 | Source { file_id: self.id.0.file_id(), ast: self.id.0.to_node(db) } |
113 | } | 109 | } |