File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ impl<'a> Converter<'a> {
149
149
150
150
if let Some ( err) = err {
151
151
let token = self . res . len ( ) as u32 ;
152
- let msg = err. to_string ( ) ;
152
+ let msg = err. to_owned ( ) ;
153
153
self . res . error . push ( LexError { msg, token } ) ;
154
154
}
155
155
}
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ fn collect_tests(s: &str) -> Vec<Test> {
60
60
for comment_block in sourcegen:: CommentBlock :: extract_untagged ( s) {
61
61
let first_line = & comment_block. contents [ 0 ] ;
62
62
let ( name, ok) = if let Some ( name) = first_line. strip_prefix ( "test " ) {
63
- ( name. to_string ( ) , true )
63
+ ( name. to_owned ( ) , true )
64
64
} else if let Some ( name) = first_line. strip_prefix ( "test_err " ) {
65
- ( name. to_string ( ) , false )
65
+ ( name. to_owned ( ) , false )
66
66
} else {
67
67
continue ;
68
68
} ;
You can’t perform that action at this time.
0 commit comments