@@ -360,12 +360,12 @@ impl Connection {
360
360
}
361
361
Err ( RecvTimeoutError :: Timeout ) => {
362
362
return Err ( ProtocolError :: new (
363
- "timed out waiting for exit notification" . to_string ( ) ,
363
+ "timed out waiting for exit notification" . to_owned ( ) ,
364
364
) )
365
365
}
366
366
Err ( RecvTimeoutError :: Disconnected ) => {
367
367
return Err ( ProtocolError :: new (
368
- "channel disconnected waiting for exit notification" . to_string ( ) ,
368
+ "channel disconnected waiting for exit notification" . to_owned ( ) ,
369
369
) )
370
370
}
371
371
}
@@ -406,15 +406,15 @@ mod tests {
406
406
#[ test]
407
407
fn not_exit_notification ( ) {
408
408
let notification = crate :: Notification {
409
- method : Initialized :: METHOD . to_string ( ) ,
409
+ method : Initialized :: METHOD . to_owned ( ) ,
410
410
params : to_value ( InitializedParams { } ) . unwrap ( ) ,
411
411
} ;
412
412
413
413
let params_as_value = to_value ( InitializeParams :: default ( ) ) . unwrap ( ) ;
414
414
let req_id = RequestId :: from ( 234 ) ;
415
415
let request = crate :: Request {
416
416
id : req_id. clone ( ) ,
417
- method : Initialize :: METHOD . to_string ( ) ,
417
+ method : Initialize :: METHOD . to_owned ( ) ,
418
418
params : params_as_value. clone ( ) ,
419
419
} ;
420
420
@@ -427,7 +427,7 @@ mod tests {
427
427
#[ test]
428
428
fn exit_notification ( ) {
429
429
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 ( ) } ;
431
431
let notification_msg = Message :: from ( notification) ;
432
432
433
433
initialize_start_test ( TestCase {
0 commit comments