@@ -474,7 +474,7 @@ impl DiskFileSystem {
474474 self . inner . watcher . stop_watching ( ) ;
475475 }
476476
477- pub async fn to_sys_path ( & self , fs_path : FileSystemPath ) -> Result < PathBuf > {
477+ pub fn to_sys_path ( & self , fs_path : FileSystemPath ) -> Result < PathBuf > {
478478 // just in case there's a windows unc path prefix we remove it with `dunce`
479479 let path = self . inner . root_path ( ) ;
480480 Ok ( if fs_path. path . is_empty ( ) {
@@ -545,7 +545,7 @@ impl FileSystem for DiskFileSystem {
545545 #[ turbo_tasks:: function( fs) ]
546546 async fn read ( & self , fs_path : FileSystemPath ) -> Result < Vc < FileContent > > {
547547 mark_session_dependent ( ) ;
548- let full_path = self . to_sys_path ( fs_path) . await ?;
548+ let full_path = self . to_sys_path ( fs_path) ?;
549549 self . inner . register_read_invalidator ( & full_path) ?;
550550
551551 let _lock = self . inner . lock_path ( & full_path) . await ;
@@ -571,7 +571,7 @@ impl FileSystem for DiskFileSystem {
571571 #[ turbo_tasks:: function( fs) ]
572572 async fn raw_read_dir ( & self , fs_path : FileSystemPath ) -> Result < Vc < RawDirectoryContent > > {
573573 mark_session_dependent ( ) ;
574- let full_path = self . to_sys_path ( fs_path) . await ?;
574+ let full_path = self . to_sys_path ( fs_path) ?;
575575 self . inner . register_dir_invalidator ( & full_path) ?;
576576
577577 // we use the sync std function here as it's a lot faster (600%) in
@@ -626,7 +626,7 @@ impl FileSystem for DiskFileSystem {
626626 #[ turbo_tasks:: function( fs) ]
627627 async fn read_link ( & self , fs_path : FileSystemPath ) -> Result < Vc < LinkContent > > {
628628 mark_session_dependent ( ) ;
629- let full_path = self . to_sys_path ( fs_path. clone ( ) ) . await ?;
629+ let full_path = self . to_sys_path ( fs_path. clone ( ) ) ?;
630630 self . inner . register_read_invalidator ( & full_path) ?;
631631
632632 let _lock = self . inner . lock_path ( & full_path) . await ;
@@ -716,7 +716,7 @@ impl FileSystem for DiskFileSystem {
716716 // `write` purely declares a side effect and does not need to be reexecuted in the next
717717 // session. All side effects are reexecuted in general.
718718
719- let full_path = self . to_sys_path ( fs_path) . await ?;
719+ let full_path = self . to_sys_path ( fs_path) ?;
720720 let content = content. await ?;
721721 let inner = self . inner . clone ( ) ;
722722 let invalidator = turbo_tasks:: get_invalidator ( ) ;
@@ -851,7 +851,7 @@ impl FileSystem for DiskFileSystem {
851851 // `write_link` purely declares a side effect and does not need to be reexecuted in the next
852852 // session. All side effects are reexecuted in general.
853853
854- let full_path = self . to_sys_path ( fs_path) . await ?;
854+ let full_path = self . to_sys_path ( fs_path) ?;
855855 let content = target. await ?;
856856 let inner = self . inner . clone ( ) ;
857857 let invalidator = turbo_tasks:: get_invalidator ( ) ;
@@ -975,7 +975,7 @@ impl FileSystem for DiskFileSystem {
975975 #[ turbo_tasks:: function( fs) ]
976976 async fn metadata ( & self , fs_path : FileSystemPath ) -> Result < Vc < FileMeta > > {
977977 mark_session_dependent ( ) ;
978- let full_path = self . to_sys_path ( fs_path) . await ?;
978+ let full_path = self . to_sys_path ( fs_path) ?;
979979 self . inner . register_read_invalidator ( & full_path) ?;
980980
981981 let _lock = self . inner . lock_path ( & full_path) . await ;
@@ -2308,7 +2308,7 @@ pub async fn to_sys_path(mut path: FileSystemPath) -> Result<Option<PathBuf>> {
23082308 }
23092309
23102310 if let Some ( fs) = Vc :: try_resolve_downcast_type :: < DiskFileSystem > ( path. fs ( ) ) . await ? {
2311- let sys_path = fs. await ?. to_sys_path ( path) . await ?;
2311+ let sys_path = fs. await ?. to_sys_path ( path) ?;
23122312 return Ok ( Some ( sys_path) ) ;
23132313 }
23142314
0 commit comments