@@ -100,7 +100,7 @@ fn check_impl(ra_fixture: &str, allow_none: bool, only_types: bool, display_sour
100100 if only_types {
101101 types. insert ( file_range, expected) ;
102102 } else if expected. starts_with ( "type: " ) {
103- types. insert ( file_range, expected. trim_start_matches ( "type: " ) . to_string ( ) ) ;
103+ types. insert ( file_range, expected. trim_start_matches ( "type: " ) . to_owned ( ) ) ;
104104 } else if expected. starts_with ( "expected" ) {
105105 mismatches. insert ( file_range, expected) ;
106106 } else if expected. starts_with ( "adjustments:" ) {
@@ -110,7 +110,7 @@ fn check_impl(ra_fixture: &str, allow_none: bool, only_types: bool, display_sour
110110 . trim_start_matches ( "adjustments:" )
111111 . trim ( )
112112 . split ( ',' )
113- . map ( |it| it. trim ( ) . to_string ( ) )
113+ . map ( |it| it. trim ( ) . to_owned ( ) )
114114 . filter ( |it| !it. is_empty ( ) )
115115 . collect ( ) ,
116116 ) ;
@@ -331,7 +331,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String {
331331 } ) ;
332332 for ( node, ty) in & types {
333333 let ( range, text) = if let Some ( self_param) = ast:: SelfParam :: cast ( node. value . clone ( ) ) {
334- ( self_param. name ( ) . unwrap ( ) . syntax ( ) . text_range ( ) , "self" . to_string ( ) )
334+ ( self_param. name ( ) . unwrap ( ) . syntax ( ) . text_range ( ) , "self" . to_owned ( ) )
335335 } else {
336336 ( node. value . text_range ( ) , node. value . text ( ) . to_string ( ) . replace ( '\n' , " " ) )
337337 } ;
0 commit comments