File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -459,8 +459,10 @@ impl FormattingOptions {
459
459
Formatter { options : self , buf : write }
460
460
}
461
461
462
+ #[ doc( hidden) ]
463
+ #[ unstable( feature = "fmt_internals" , reason = "internal to standard library" , issue = "none" ) ]
462
464
/// Flags for formatting
463
- fn flags ( & mut self , flags : u32 ) {
465
+ pub fn flags ( & mut self , flags : u32 ) {
464
466
self . sign = if flags & ( 1 << rt:: Flag :: SignPlus as u32 ) != 0 {
465
467
Some ( Sign :: Plus )
466
468
} else if flags & ( 1 << rt:: Flag :: SignMinus as u32 ) != 0 {
@@ -478,8 +480,10 @@ impl FormattingOptions {
478
480
None
479
481
} ;
480
482
}
483
+ #[ doc( hidden) ]
484
+ #[ unstable( feature = "fmt_internals" , reason = "internal to standard library" , issue = "none" ) ]
481
485
/// Flags for formatting
482
- fn get_flags ( & self ) -> u32 {
486
+ pub fn get_flags ( & self ) -> u32 {
483
487
<bool as Into < u32 > >:: into ( self . get_sign ( ) == Some ( Sign :: Plus ) ) << rt:: Flag :: SignPlus as u32
484
488
| <bool as Into < u32 > >:: into ( self . get_sign ( ) == Some ( Sign :: Minus ) )
485
489
<< rt:: Flag :: SignMinus as u32
You can’t perform that action at this time.
0 commit comments