From 2bc47940be9359e34cfe50c64fe76234999bc716 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 6 May 2026 04:02:24 +0900 Subject: refactor(console): rename color helpers and migrate call sites to console_format! The six tag-style color functions (info, comment, error, question, highlight, warning) are pub only so that console_format! can call them from generated code; they are not part of the public API. Rename them to __format_*_message to make that intent visible, add a doc-comment saying not to call them directly, and replace every remaining direct call site with console_format!. Co-Authored-By: Claude Sonnet 4.6 --- crates/mozart-console-macros/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart-console-macros/src/codegen.rs') diff --git a/crates/mozart-console-macros/src/codegen.rs b/crates/mozart-console-macros/src/codegen.rs index 11e37f9..002f808 100644 --- a/crates/mozart-console-macros/src/codegen.rs +++ b/crates/mozart-console-macros/src/codegen.rs @@ -135,7 +135,7 @@ fn generate_single(segment: &Segment, args: &Punctuated) - } } Segment::Tagged { tag, content } => { - let func = quote::format_ident!("{}", tag); + let func = quote::format_ident!("__format_{}_message", tag); if has_placeholders(content) { let lit = proc_macro2::Literal::string(content); quote! { -- cgit v1.3.1