diff options
author | Aleksey Kladov <[email protected]> | 2020-11-02 15:31:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-02 15:58:33 +0000 |
commit | ba8d6d1e4ea2590b31470171efc175b0301c5e1c (patch) | |
tree | 6304a61e803e5adf802abce8ae2d7066a2c5fef8 /crates/hir/src/has_source.rs | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) |
Remove more unreachable pubs
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>; |