@@ -645,7 +645,7 @@ pub trait PrintState<'a> {
645645 ast:: LitKind :: Float ( ref f, t) => {
646646 self . writer ( ) . word ( format ! ( "{}{}" , & f, t. ty_to_string( ) ) )
647647 }
648- ast:: LitKind :: FloatUnsuffixed ( ref f) => self . writer ( ) . word ( f. as_str ( ) . get ( ) ) ,
648+ ast:: LitKind :: FloatUnsuffixed ( ref f) => self . writer ( ) . word ( f. as_str ( ) . to_string ( ) ) ,
649649 ast:: LitKind :: Bool ( val) => {
650650 if val { self . writer ( ) . word ( "true" ) } else { self . writer ( ) . word ( "false" ) }
651651 }
@@ -731,7 +731,7 @@ pub trait PrintState<'a> {
731731 if segment. ident . name == keywords:: DollarCrate . name ( ) {
732732 self . print_dollar_crate ( segment. ident ) ?;
733733 } else {
734- self . writer ( ) . word ( segment. ident . as_str ( ) . get ( ) ) ?;
734+ self . writer ( ) . word ( segment. ident . as_str ( ) . to_string ( ) ) ?;
735735 }
736736 }
737737 }
@@ -749,7 +749,7 @@ pub trait PrintState<'a> {
749749 }
750750 self . maybe_print_comment ( attr. span . lo ( ) ) ?;
751751 if attr. is_sugared_doc {
752- self . writer ( ) . word ( attr. value_str ( ) . unwrap ( ) . as_str ( ) . get ( ) ) ?;
752+ self . writer ( ) . word ( attr. value_str ( ) . unwrap ( ) . as_str ( ) . to_string ( ) ) ?;
753753 self . writer ( ) . hardbreak ( )
754754 } else {
755755 match attr. style {
@@ -858,7 +858,7 @@ pub trait PrintState<'a> {
858858 if !ast:: Ident :: with_empty_ctxt ( name) . is_path_segment_keyword ( ) {
859859 self . writer ( ) . word ( "::" ) ?;
860860 }
861- self . writer ( ) . word ( name. as_str ( ) . get ( ) )
861+ self . writer ( ) . word ( name. as_str ( ) . to_string ( ) )
862862 }
863863}
864864
@@ -1300,7 +1300,7 @@ impl<'a> State<'a> {
13001300 }
13011301 ast:: ItemKind :: GlobalAsm ( ref ga) => {
13021302 self . head ( visibility_qualified ( & item. vis , "global_asm!" ) ) ?;
1303- self . s . word ( ga. asm . as_str ( ) . get ( ) ) ?;
1303+ self . s . word ( ga. asm . as_str ( ) . to_string ( ) ) ?;
13041304 self . end ( ) ?;
13051305 }
13061306 ast:: ItemKind :: Ty ( ref ty, ref generics) => {
@@ -2437,7 +2437,7 @@ impl<'a> State<'a> {
24372437 if ident. is_raw_guess ( ) {
24382438 self . s . word ( format ! ( "r#{}" , ident) ) ?;
24392439 } else {
2440- self . s . word ( ident. as_str ( ) . get ( ) ) ?;
2440+ self . s . word ( ident. as_str ( ) . to_string ( ) ) ?;
24412441 }
24422442 self . ann . post ( self , AnnNode :: Ident ( & ident) )
24432443 }
@@ -2447,7 +2447,7 @@ impl<'a> State<'a> {
24472447 }
24482448
24492449 pub fn print_name ( & mut self , name : ast:: Name ) -> io:: Result < ( ) > {
2450- self . s . word ( name. as_str ( ) . get ( ) ) ?;
2450+ self . s . word ( name. as_str ( ) . to_string ( ) ) ?;
24512451 self . ann . post ( self , AnnNode :: Name ( & name) )
24522452 }
24532453
0 commit comments