@@ -153,10 +153,10 @@ impl TestCase {
153
153
/// empty (zero-length) value is represented as "".
154
154
pub fn consume_bytes ( & mut self , key : & str ) -> Vec < u8 > {
155
155
let mut s = self . consume_string ( key) ;
156
- if s. starts_with ( " \" " ) {
156
+ if s. starts_with ( '\"' ) {
157
157
// The value is a quoted strong.
158
158
// XXX: We don't deal with any inner quotes.
159
- if !s. ends_with ( " \" " ) {
159
+ if !s. ends_with ( '\"' ) {
160
160
panic ! ( "expected quoted string, found {}" , s) ;
161
161
}
162
162
let _ = s. pop ( ) ;
@@ -331,11 +331,11 @@ fn parse_test_case(current_section: &mut String,
331
331
} ,
332
332
333
333
// Comments start with '#'; ignore them.
334
- Some ( ref line) if line. starts_with ( "#" ) => { } ,
334
+ Some ( ref line) if line. starts_with ( '#' ) => { } ,
335
335
336
- Some ( ref line) if line. starts_with ( "[" ) => {
336
+ Some ( ref line) if line. starts_with ( '[' ) => {
337
337
assert ! ( is_first_line) ;
338
- assert ! ( line. ends_with( "]" ) ) ;
338
+ assert ! ( line. ends_with( ']' ) ) ;
339
339
current_section. truncate ( 0 ) ;
340
340
current_section. push_str ( line) ;
341
341
let _ = current_section. pop ( ) ;
0 commit comments