From 28adb8fe16f6390502aa41d54253cde0b7c17c79 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 23 Jul 2020 15:07:01 +0200 Subject: Reduce visibility --- crates/ra_hir_expand/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_hir_expand') diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index 1cf6c1ba9..d9e31ac20 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs @@ -262,14 +262,14 @@ pub enum MacroCallKind { } impl MacroCallKind { - pub fn file_id(&self) -> HirFileId { + fn file_id(&self) -> HirFileId { match self { MacroCallKind::FnLike(ast_id) => ast_id.file_id, MacroCallKind::Attr(ast_id, _) => ast_id.file_id, } } - pub fn node(&self, db: &dyn db::AstDatabase) -> InFile { + fn node(&self, db: &dyn db::AstDatabase) -> InFile { match self { MacroCallKind::FnLike(ast_id) => ast_id.with_value(ast_id.to_node(db).syntax().clone()), MacroCallKind::Attr(ast_id, _) => { @@ -278,7 +278,7 @@ impl MacroCallKind { } } - pub fn arg(&self, db: &dyn db::AstDatabase) -> Option { + fn arg(&self, db: &dyn db::AstDatabase) -> Option { match self { MacroCallKind::FnLike(ast_id) => { Some(ast_id.to_node(db).token_tree()?.syntax().clone()) -- cgit v1.2.3