Skip to content

Commit 83f3645

Browse files
bors[bot]matklad
andauthored
Merge #5504
5504: Reduce visibility r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents bb4cb71 + 28adb8f commit 83f3645

File tree

1 file changed

+3
-3
lines changed
  • crates/ra_hir_expand/src

1 file changed

+3
-3
lines changed

crates/ra_hir_expand/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ pub enum MacroCallKind {
262262
}
263263

264264
impl MacroCallKind {
265-
pub fn file_id(&self) -> HirFileId {
265+
fn file_id(&self) -> HirFileId {
266266
match self {
267267
MacroCallKind::FnLike(ast_id) => ast_id.file_id,
268268
MacroCallKind::Attr(ast_id, _) => ast_id.file_id,
269269
}
270270
}
271271

272-
pub fn node(&self, db: &dyn db::AstDatabase) -> InFile<SyntaxNode> {
272+
fn node(&self, db: &dyn db::AstDatabase) -> InFile<SyntaxNode> {
273273
match self {
274274
MacroCallKind::FnLike(ast_id) => ast_id.with_value(ast_id.to_node(db).syntax().clone()),
275275
MacroCallKind::Attr(ast_id, _) => {
@@ -278,7 +278,7 @@ impl MacroCallKind {
278278
}
279279
}
280280

281-
pub fn arg(&self, db: &dyn db::AstDatabase) -> Option<SyntaxNode> {
281+
fn arg(&self, db: &dyn db::AstDatabase) -> Option<SyntaxNode> {
282282
match self {
283283
MacroCallKind::FnLike(ast_id) => {
284284
Some(ast_id.to_node(db).token_tree()?.syntax().clone())

0 commit comments

Comments
 (0)