File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -459,10 +459,8 @@ impl FormattingOptions {
459459 Formatter { options : self , buf : write }
460460 }
461461
462- #[ doc( hidden) ]
463- #[ unstable( feature = "fmt_internals" , reason = "internal to standard library" , issue = "none" ) ]
464462 /// Flags for formatting
465- pub fn flags ( & mut self , flags : u32 ) {
463+ fn flags ( & mut self , flags : u32 ) {
466464 self . sign = if flags & ( 1 << rt:: Flag :: SignPlus as u32 ) != 0 {
467465 Some ( Sign :: Plus )
468466 } else if flags & ( 1 << rt:: Flag :: SignMinus as u32 ) != 0 {
@@ -480,10 +478,8 @@ impl FormattingOptions {
480478 None
481479 } ;
482480 }
483- #[ doc( hidden) ]
484- #[ unstable( feature = "fmt_internals" , reason = "internal to standard library" , issue = "none" ) ]
485481 /// Flags for formatting
486- pub fn get_flags ( & self ) -> u32 {
482+ fn get_flags ( & self ) -> u32 {
487483 <bool as Into < u32 > >:: into ( self . get_sign ( ) == Some ( Sign :: Plus ) ) << rt:: Flag :: SignPlus as u32
488484 | <bool as Into < u32 > >:: into ( self . get_sign ( ) == Some ( Sign :: Minus ) )
489485 << rt:: Flag :: SignMinus as u32
You can’t perform that action at this time.
0 commit comments