@@ -260,7 +260,7 @@ impl ChangeFixture {
260
260
file_id = FileId :: from_raw ( file_id. index ( ) + 1 ) ;
261
261
262
262
let mut fs = FileSet :: default ( ) ;
263
- fs. insert ( core_file, VfsPath :: new_virtual_path ( "/sysroot/core/lib.rs" . to_string ( ) ) ) ;
263
+ fs. insert ( core_file, VfsPath :: new_virtual_path ( "/sysroot/core/lib.rs" . to_owned ( ) ) ) ;
264
264
roots. push ( SourceRoot :: new_library ( fs) ) ;
265
265
266
266
source_change. change_file ( core_file, Some ( mini_core. source_code ( ) . into ( ) ) ) ;
@@ -270,7 +270,7 @@ impl ChangeFixture {
270
270
let core_crate = crate_graph. add_crate_root (
271
271
core_file,
272
272
Edition :: Edition2021 ,
273
- Some ( CrateDisplayName :: from_canonical_name ( "core" . to_string ( ) ) ) ,
273
+ Some ( CrateDisplayName :: from_canonical_name ( "core" . to_owned ( ) ) ) ,
274
274
None ,
275
275
Default :: default ( ) ,
276
276
Default :: default ( ) ,
@@ -304,7 +304,7 @@ impl ChangeFixture {
304
304
let mut fs = FileSet :: default ( ) ;
305
305
fs. insert (
306
306
proc_lib_file,
307
- VfsPath :: new_virtual_path ( "/sysroot/proc_macros/lib.rs" . to_string ( ) ) ,
307
+ VfsPath :: new_virtual_path ( "/sysroot/proc_macros/lib.rs" . to_owned ( ) ) ,
308
308
) ;
309
309
roots. push ( SourceRoot :: new_library ( fs) ) ;
310
310
@@ -315,7 +315,7 @@ impl ChangeFixture {
315
315
let proc_macros_crate = crate_graph. add_crate_root (
316
316
proc_lib_file,
317
317
Edition :: Edition2021 ,
318
- Some ( CrateDisplayName :: from_canonical_name ( "proc_macros" . to_string ( ) ) ) ,
318
+ Some ( CrateDisplayName :: from_canonical_name ( "proc_macros" . to_owned ( ) ) ) ,
319
319
None ,
320
320
Default :: default ( ) ,
321
321
Default :: default ( ) ,
0 commit comments