diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_impl.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_impl.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/code_model_impl.rs b/crates/ra_hir/src/code_model_impl.rs index 22079ba33..659af548c 100644 --- a/crates/ra_hir/src/code_model_impl.rs +++ b/crates/ra_hir/src/code_model_impl.rs | |||
@@ -4,7 +4,6 @@ use crate::{HirFileId, db::HirDatabase, Crate, CrateDependency, AsName, DefId, D | |||
4 | 4 | ||
5 | use crate::code_model_api::Module; | 5 | use crate::code_model_api::Module; |
6 | 6 | ||
7 | |||
8 | impl Crate { | 7 | impl Crate { |
9 | pub(crate) fn new(crate_id: CrateId) -> Crate { | 8 | pub(crate) fn new(crate_id: CrateId) -> Crate { |
10 | Crate { crate_id } | 9 | Crate { crate_id } |
@@ -45,7 +44,7 @@ impl Crate { | |||
45 | } | 44 | } |
46 | 45 | ||
47 | impl Module { | 46 | impl Module { |
48 | fn new(def_id: DefId) -> Self { | 47 | pub(crate) fn new(def_id: DefId) -> Self { |
49 | crate::code_model_api::Module { def_id } | 48 | crate::code_model_api::Module { def_id } |
50 | } | 49 | } |
51 | 50 | ||