File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
const_format_proc_macros/src/format_str Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ use crate::{
7
7
8
8
#[ cfg( test) ]
9
9
impl FmtStrComponent {
10
- fn str ( s : & str ) -> Self {
10
+ pub ( super ) fn str ( s : & str ) -> Self {
11
11
Self :: Str ( s. to_string ( ) , StrRawness :: dummy ( ) )
12
12
}
13
- fn arg ( which_arg : WhichArg , formatting : FormattingFlags ) -> Self {
13
+ pub ( super ) fn arg ( which_arg : WhichArg , formatting : FormattingFlags ) -> Self {
14
14
Self :: Arg ( FmtArg {
15
15
which_arg,
16
16
formatting,
@@ -31,7 +31,7 @@ impl FmtArg {
31
31
32
32
#[ allow( dead_code) ]
33
33
impl WhichArg {
34
- fn ident ( s : & str ) -> Self {
34
+ pub ( super ) fn ident ( s : & str ) -> Self {
35
35
Self :: Ident ( s. to_string ( ) )
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use super::*;
2
2
3
3
use super :: { ParseError as PE , ParseErrorKind as PEK } ;
4
4
5
- use crate :: formatting:: { FormattingFlags as FF , IsAlternate } ;
5
+ use crate :: formatting:: { FormattingFlags as FF , IsAlternate , NumberFormatting } ;
6
6
7
7
use fastrand:: Rng ;
8
8
You can’t perform that action at this time.
0 commit comments