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> {
149149
150150 if let Some ( err) = err {
151151 let token = self . res . len ( ) as u32 ;
152- let msg = err. to_string ( ) ;
152+ let msg = err. to_owned ( ) ;
153153 self . res . error . push ( LexError { msg, token } ) ;
154154 }
155155 }
Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ fn collect_tests(s: &str) -> Vec<Test> {
6060 for comment_block in sourcegen:: CommentBlock :: extract_untagged ( s) {
6161 let first_line = & comment_block. contents [ 0 ] ;
6262 let ( name, ok) = if let Some ( name) = first_line. strip_prefix ( "test " ) {
63- ( name. to_string ( ) , true )
63+ ( name. to_owned ( ) , true )
6464 } else if let Some ( name) = first_line. strip_prefix ( "test_err " ) {
65- ( name. to_string ( ) , false )
65+ ( name. to_owned ( ) , false )
6666 } else {
6767 continue ;
6868 } ;
You can’t perform that action at this time.
0 commit comments