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