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