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 @@ -443,10 +443,8 @@ impl FormattingOptions {
443
443
Formatter { options : self , buf : write }
444
444
}
445
445
446
- #[ doc( hidden) ]
447
- #[ unstable( feature = "fmt_internals" , reason = "internal to standard library" , issue = "none" ) ]
448
446
/// Flags for formatting
449
- pub fn flags ( & mut self , flags : u32 ) {
447
+ fn flags ( & mut self , flags : u32 ) {
450
448
self . sign = if flags & ( 1 << rt:: Flag :: SignPlus as u32 ) != 0 {
451
449
Some ( Sign :: Plus )
452
450
} else if flags & ( 1 << rt:: Flag :: SignMinus as u32 ) != 0 {
@@ -464,10 +462,8 @@ impl FormattingOptions {
464
462
None
465
463
} ;
466
464
}
467
- #[ doc( hidden) ]
468
- #[ unstable( feature = "fmt_internals" , reason = "internal to standard library" , issue = "none" ) ]
469
465
/// Flags for formatting
470
- pub fn get_flags ( & self ) -> u32 {
466
+ fn get_flags ( & self ) -> u32 {
471
467
<bool as Into < u32 > >:: into ( self . get_sign ( ) == Some ( Sign :: Plus ) ) << rt:: Flag :: SignPlus as u32
472
468
| <bool as Into < u32 > >:: into ( self . get_sign ( ) == Some ( Sign :: Minus ) )
473
469
<< rt:: Flag :: SignMinus as u32
You can’t perform that action at this time.
0 commit comments