From 6b3cdb3a98cb6416b7adc3651a8640da8f4b0b6a Mon Sep 17 00:00:00 2001 From: Febriananda Wida Pramudita Date: Wed, 19 Feb 2025 00:46:54 +0700 Subject: [PATCH] restrict publicity --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index e7e9d8ca867..19d8346ca69 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -716,7 +716,7 @@ mod test { } } -pub fn is_absolute_decl_path(path: &ast::Path) -> bool { +pub(crate) fn is_absolute_decl_path(path: &ast::Path) -> bool { let segments = &path.segments; match segments.first() { Some(path_segment) => path_segment.ident.name == symbol::kw::PathRoot, @@ -724,7 +724,7 @@ pub fn is_absolute_decl_path(path: &ast::Path) -> bool { } } -pub fn is_ty_kind_with_absolute_decl(ty_kind: &ast::TyKind) -> bool { +pub(crate) fn is_ty_kind_with_absolute_decl(ty_kind: &ast::TyKind) -> bool { match ty_kind { ast::TyKind::Path(None, ast_path) => is_absolute_decl_path(ast_path), _ => false,