From dd9c6aa770e1b1000ab9b75ad87ae6e4997f8c28 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Tue, 13 Sep 2022 13:36:48 +0200 Subject: [PATCH] move to private --- src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d9cb02e..f4cedf5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,13 +4,10 @@ mod args; mod opts; mod write; -#[doc(hidden)] -pub use mono_fmt_macro::__format_args; - #[macro_export] macro_rules! format_args { ($($tt:tt)*) => { - $crate::__format_args!($crate $($tt)*) + $crate::_private::__format_args!($crate $($tt)*) }; } @@ -98,12 +95,16 @@ pub fn format(args: A) -> String { string } +/// Not part of the public API. +#[doc(hidden)] mod _private { pub use crate::args::{ConstWidthArg, DebugArg, DisplayArg, Str}; pub use crate::opts::{ WithAlternate, WithCenterAlign, WithFill, WithLeftAlign, WithRightAlign, WithWidth, }; + + pub use mono_fmt_macro::__format_args; } #[macro_export]