@@ -294,8 +294,8 @@ impl VfsNode for RomFile {
294294 NodeKind :: File
295295 }
296296
297- fn get_object ( & self ) -> io:: Result < Arc < async_lock :: RwLock < dyn ObjectInterface > > > {
298- Ok ( Arc :: new ( async_lock :: RwLock :: new ( RomFileInterface :: new (
297+ fn get_object ( & self ) -> io:: Result < Arc < RwLock < dyn ObjectInterface > > > {
298+ Ok ( Arc :: new ( RwLock :: new ( RomFileInterface :: new (
299299 self . data . clone ( ) ,
300300 ) ) ) )
301301 }
@@ -350,8 +350,8 @@ impl VfsNode for RamFile {
350350 NodeKind :: File
351351 }
352352
353- fn get_object ( & self ) -> io:: Result < Arc < async_lock :: RwLock < dyn ObjectInterface > > > {
354- Ok ( Arc :: new ( async_lock :: RwLock :: new ( RamFileInterface :: new (
353+ fn get_object ( & self ) -> io:: Result < Arc < RwLock < dyn ObjectInterface > > > {
354+ Ok ( Arc :: new ( RwLock :: new ( RamFileInterface :: new (
355355 self . data . clone ( ) ,
356356 ) ) ) )
357357 }
@@ -506,7 +506,7 @@ impl MemDirectory {
506506 components : & mut Vec < & str > ,
507507 opt : OpenOption ,
508508 mode : AccessPermission ,
509- ) -> io:: Result < Arc < async_lock :: RwLock < dyn ObjectInterface > > > {
509+ ) -> io:: Result < Arc < RwLock < dyn ObjectInterface > > > {
510510 if let Some ( component) = components. pop ( ) {
511511 let node_name = String :: from ( component) ;
512512
@@ -527,7 +527,7 @@ impl MemDirectory {
527527 } else if opt. contains ( OpenOption :: O_CREAT ) {
528528 let file = Box :: new ( RamFile :: new ( mode) ) ;
529529 guard. insert ( node_name, file. clone ( ) ) ;
530- return Ok ( Arc :: new ( async_lock :: RwLock :: new ( RamFileInterface :: new (
530+ return Ok ( Arc :: new ( RwLock :: new ( RamFileInterface :: new (
531531 file. data . clone ( ) ,
532532 ) ) ) ) ;
533533 } else {
@@ -549,10 +549,10 @@ impl VfsNode for MemDirectory {
549549 NodeKind :: Directory
550550 }
551551
552- fn get_object ( & self ) -> io:: Result < Arc < async_lock :: RwLock < dyn ObjectInterface > > > {
553- Ok ( Arc :: new ( async_lock :: RwLock :: new (
554- MemDirectoryInterface :: new ( self . inner . clone ( ) ) ,
555- ) ) )
552+ fn get_object ( & self ) -> io:: Result < Arc < RwLock < dyn ObjectInterface > > > {
553+ Ok ( Arc :: new ( RwLock :: new ( MemDirectoryInterface :: new (
554+ self . inner . clone ( ) ,
555+ ) ) ) )
556556 }
557557
558558 fn get_file_attributes ( & self ) -> io:: Result < FileAttr > {
@@ -743,7 +743,7 @@ impl VfsNode for MemDirectory {
743743 components : & mut Vec < & str > ,
744744 opt : OpenOption ,
745745 mode : AccessPermission ,
746- ) -> io:: Result < Arc < async_lock :: RwLock < dyn ObjectInterface > > > {
746+ ) -> io:: Result < Arc < RwLock < dyn ObjectInterface > > > {
747747 block_on ( self . async_traverse_open ( components, opt, mode) , None )
748748 }
749749
0 commit comments