@@ -360,12 +360,12 @@ impl Connection {
360360 }
361361 Err ( RecvTimeoutError :: Timeout ) => {
362362 return Err ( ProtocolError :: new (
363- "timed out waiting for exit notification" . to_string ( ) ,
363+ "timed out waiting for exit notification" . to_owned ( ) ,
364364 ) )
365365 }
366366 Err ( RecvTimeoutError :: Disconnected ) => {
367367 return Err ( ProtocolError :: new (
368- "channel disconnected waiting for exit notification" . to_string ( ) ,
368+ "channel disconnected waiting for exit notification" . to_owned ( ) ,
369369 ) )
370370 }
371371 }
@@ -406,15 +406,15 @@ mod tests {
406406 #[ test]
407407 fn not_exit_notification ( ) {
408408 let notification = crate :: Notification {
409- method : Initialized :: METHOD . to_string ( ) ,
409+ method : Initialized :: METHOD . to_owned ( ) ,
410410 params : to_value ( InitializedParams { } ) . unwrap ( ) ,
411411 } ;
412412
413413 let params_as_value = to_value ( InitializeParams :: default ( ) ) . unwrap ( ) ;
414414 let req_id = RequestId :: from ( 234 ) ;
415415 let request = crate :: Request {
416416 id : req_id. clone ( ) ,
417- method : Initialize :: METHOD . to_string ( ) ,
417+ method : Initialize :: METHOD . to_owned ( ) ,
418418 params : params_as_value. clone ( ) ,
419419 } ;
420420
@@ -427,7 +427,7 @@ mod tests {
427427 #[ test]
428428 fn exit_notification ( ) {
429429 let notification =
430- crate :: Notification { method : Exit :: METHOD . to_string ( ) , params : to_value ( ( ) ) . unwrap ( ) } ;
430+ crate :: Notification { method : Exit :: METHOD . to_owned ( ) , params : to_value ( ( ) ) . unwrap ( ) } ;
431431 let notification_msg = Message :: from ( notification) ;
432432
433433 initialize_start_test ( TestCase {
0 commit comments