@@ -260,7 +260,7 @@ impl ChangeFixture {
260260 file_id = FileId :: from_raw ( file_id. index ( ) + 1 ) ;
261261
262262 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 ( ) ) ) ;
264264 roots. push ( SourceRoot :: new_library ( fs) ) ;
265265
266266 source_change. change_file ( core_file, Some ( mini_core. source_code ( ) . into ( ) ) ) ;
@@ -270,7 +270,7 @@ impl ChangeFixture {
270270 let core_crate = crate_graph. add_crate_root (
271271 core_file,
272272 Edition :: Edition2021 ,
273- Some ( CrateDisplayName :: from_canonical_name ( "core" . to_string ( ) ) ) ,
273+ Some ( CrateDisplayName :: from_canonical_name ( "core" . to_owned ( ) ) ) ,
274274 None ,
275275 Default :: default ( ) ,
276276 Default :: default ( ) ,
@@ -304,7 +304,7 @@ impl ChangeFixture {
304304 let mut fs = FileSet :: default ( ) ;
305305 fs. insert (
306306 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 ( ) ) ,
308308 ) ;
309309 roots. push ( SourceRoot :: new_library ( fs) ) ;
310310
@@ -315,7 +315,7 @@ impl ChangeFixture {
315315 let proc_macros_crate = crate_graph. add_crate_root (
316316 proc_lib_file,
317317 Edition :: Edition2021 ,
318- Some ( CrateDisplayName :: from_canonical_name ( "proc_macros" . to_string ( ) ) ) ,
318+ Some ( CrateDisplayName :: from_canonical_name ( "proc_macros" . to_owned ( ) ) ) ,
319319 None ,
320320 Default :: default ( ) ,
321321 Default :: default ( ) ,
0 commit comments