diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2021-05-04 20:29:30 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2021-05-04 20:29:30 +0300 |
| commit | 87f827bfafc28669e896904bd162e3864350aeed (patch) | |
| tree | 8d548f771611c24a4aeae07b68c292faaa7f2d7e | |
| parent | a231da9d245dc280b082f2d8795f8e6bf16e409a (diff) | |
| download | rust-87f827bfafc28669e896904bd162e3864350aeed.tar.gz rust-87f827bfafc28669e896904bd162e3864350aeed.zip | |
internal: reduce visibility
| -rw-r--r-- | crates/hir_expand/src/db.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/hir_expand/src/db.rs b/crates/hir_expand/src/db.rs index 1e4b0cc194b..43f787b34ae 100644 --- a/crates/hir_expand/src/db.rs +++ b/crates/hir_expand/src/db.rs @@ -35,7 +35,7 @@ pub enum TokenExpander { } impl TokenExpander { - pub fn expand( + fn expand( &self, db: &dyn AstDatabase, id: LazyMacroId, @@ -56,7 +56,7 @@ impl TokenExpander { } } - pub fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId { + pub(crate) fn map_id_down(&self, id: tt::TokenId) -> tt::TokenId { match self { TokenExpander::MacroRules(it) => it.map_id_down(id), TokenExpander::MacroDef(it) => it.map_id_down(id), @@ -66,7 +66,7 @@ impl TokenExpander { } } - pub fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) { + pub(crate) fn map_id_up(&self, id: tt::TokenId) -> (tt::TokenId, mbe::Origin) { match self { TokenExpander::MacroRules(it) => it.map_id_up(id), TokenExpander::MacroDef(it) => it.map_id_up(id), |
