File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mod histbuf;
97
97
mod indexmap;
98
98
mod indexset;
99
99
mod linear_map;
100
- pub mod string;
100
+ mod string;
101
101
mod vec;
102
102
103
103
#[ cfg( feature = "serde" ) ]
@@ -134,3 +134,10 @@ pub mod spsc;
134
134
mod ufmt;
135
135
136
136
mod sealed;
137
+
138
+ /// Implementation details for macros.
139
+ /// Do not use. Used for macros only. Not covered by semver guarantees.
140
+ #[ doc( hidden) ]
141
+ pub mod _export {
142
+ pub use crate :: string:: format;
143
+ }
Original file line number Diff line number Diff line change @@ -637,11 +637,11 @@ macro_rules! format {
637
637
// Without semicolon as separator to disambiguate between arms, Rust just
638
638
// chooses the first so that the format string would land in $max.
639
639
( $max: expr; $( $arg: tt) * ) => { {
640
- let res = $crate:: string :: format:: <$max>( core:: format_args!( $( $arg) * ) ) ;
640
+ let res = $crate:: _export :: format:: <$max>( core:: format_args!( $( $arg) * ) ) ;
641
641
res
642
642
} } ;
643
643
( $( $arg: tt) * ) => { {
644
- let res = $crate:: string :: format( core:: format_args!( $( $arg) * ) ) ;
644
+ let res = $crate:: _export :: format( core:: format_args!( $( $arg) * ) ) ;
645
645
res
646
646
} } ;
647
647
}
You can’t perform that action at this time.
0 commit comments