@@ -682,10 +682,10 @@ pub trait PrintState<'a> {
682682 fn print_string ( & mut self , st : & str ,
683683 style : ast:: StrStyle ) -> io:: Result < ( ) > {
684684 let st = match style {
685- ast:: CookedStr => {
685+ ast:: StrStyle :: Cooked => {
686686 ( format ! ( "\" {}\" " , st. escape_default( ) ) )
687687 }
688- ast:: RawStr ( n) => {
688+ ast:: StrStyle :: Raw ( n) => {
689689 ( format ! ( "r{delim}\" {string}\" {delim}" ,
690690 delim=repeat( "#" , n) ,
691691 string=st) )
@@ -1123,7 +1123,7 @@ impl<'a> State<'a> {
11231123 if let Some ( p) = * optional_path {
11241124 let val = p. as_str ( ) ;
11251125 if val. contains ( "-" ) {
1126- try!( self . print_string ( & val, ast:: CookedStr ) ) ;
1126+ try!( self . print_string ( & val, ast:: StrStyle :: Cooked ) ) ;
11271127 } else {
11281128 try!( self . print_name ( p) ) ;
11291129 }
@@ -2215,9 +2215,9 @@ impl<'a> State<'a> {
22152215 match out. constraint . slice_shift_char ( ) {
22162216 Some ( ( '=' , operand) ) if out. is_rw => {
22172217 try!( s. print_string ( & format ! ( "+{}" , operand) ,
2218- ast:: CookedStr ) )
2218+ ast:: StrStyle :: Cooked ) )
22192219 }
2220- _ => try!( s. print_string ( & out. constraint , ast:: CookedStr ) )
2220+ _ => try!( s. print_string ( & out. constraint , ast:: StrStyle :: Cooked ) )
22212221 }
22222222 try!( s. popen ( ) ) ;
22232223 try!( s. print_expr ( & * out. expr ) ) ;
@@ -2229,7 +2229,7 @@ impl<'a> State<'a> {
22292229
22302230 try!( self . commasep ( Inconsistent , & a. inputs ,
22312231 |s, & ( ref co, ref o) | {
2232- try!( s. print_string ( & co, ast:: CookedStr ) ) ;
2232+ try!( s. print_string ( & co, ast:: StrStyle :: Cooked ) ) ;
22332233 try!( s. popen ( ) ) ;
22342234 try!( s. print_expr ( & * * o) ) ;
22352235 try!( s. pclose ( ) ) ;
@@ -2240,7 +2240,7 @@ impl<'a> State<'a> {
22402240
22412241 try!( self . commasep ( Inconsistent , & a. clobbers ,
22422242 |s, co| {
2243- try!( s. print_string ( & co, ast:: CookedStr ) ) ;
2243+ try!( s. print_string ( & co, ast:: StrStyle :: Cooked ) ) ;
22442244 Ok ( ( ) )
22452245 } ) ) ;
22462246
@@ -2260,7 +2260,7 @@ impl<'a> State<'a> {
22602260 try!( self . word_space ( ":" ) ) ;
22612261 try!( self . commasep ( Inconsistent , & * options,
22622262 |s, & co| {
2263- try!( s. print_string ( co, ast:: CookedStr ) ) ;
2263+ try!( s. print_string ( co, ast:: StrStyle :: Cooked ) ) ;
22642264 Ok ( ( ) )
22652265 } ) ) ;
22662266 }
0 commit comments