diff options
Diffstat (limited to 'crates/hir/src/has_source.rs')
-rw-r--r-- | crates/hir/src/has_source.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/hir/src/has_source.rs b/crates/hir/src/has_source.rs index 3bad2338a..c77494152 100644 --- a/crates/hir/src/has_source.rs +++ b/crates/hir/src/has_source.rs | |||
@@ -6,6 +6,7 @@ use hir_def::{ | |||
6 | src::{HasChildSource, HasSource as _}, | 6 | src::{HasChildSource, HasSource as _}, |
7 | Lookup, VariantId, | 7 | Lookup, VariantId, |
8 | }; | 8 | }; |
9 | use hir_expand::InFile; | ||
9 | use syntax::ast; | 10 | use syntax::ast; |
10 | 11 | ||
11 | use crate::{ | 12 | use crate::{ |
@@ -13,8 +14,6 @@ use crate::{ | |||
13 | Module, Static, Struct, Trait, TypeAlias, TypeParam, Union, | 14 | Module, Static, Struct, Trait, TypeAlias, TypeParam, Union, |
14 | }; | 15 | }; |
15 | 16 | ||
16 | pub use hir_expand::InFile; | ||
17 | |||
18 | pub trait HasSource { | 17 | pub trait HasSource { |
19 | type Ast; | 18 | type Ast; |
20 | fn source(self, db: &dyn HirDatabase) -> InFile<Self::Ast>; | 19 | fn source(self, db: &dyn HirDatabase) -> InFile<Self::Ast>; |