File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ impl Vfs {
466466 let mut mountpoints = self . mountpoints . load ( ) . deref ( ) . deref ( ) . clone ( ) ;
467467 let fs_idx = mountpoints
468468 . get ( & inode)
469- . map ( Arc :: clone )
469+ . cloned ( )
470470 . map ( |x| {
471471 // Do not remove pseudofs inode. We keep all pseudofs inode so that
472472 // 1. they can be reused later on
@@ -650,7 +650,7 @@ impl Vfs {
650650 if inode. is_pseudo_fs ( ) {
651651 // ROOT_ID is special, we need to check if we have a mountpoint on the vfs root
652652 if inode. ino ( ) == ROOT_ID {
653- if let Some ( mnt) = self . mountpoints . load ( ) . get ( & inode. ino ( ) ) . map ( Arc :: clone ) {
653+ if let Some ( mnt) = self . mountpoints . load ( ) . get ( & inode. ino ( ) ) . cloned ( ) {
654654 let fs = self . get_fs_by_idx ( mnt. fs_idx ) ?;
655655 return Ok ( ( Right ( fs) , VfsInode :: new ( mnt. fs_idx , mnt. ino ) ) ) ;
656656 }
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl InodeMap {
193193 . read ( )
194194 . unwrap ( )
195195 . get ( & inode)
196- . map ( Arc :: clone )
196+ . cloned ( )
197197 . ok_or_else ( ebadf)
198198 }
199199
@@ -235,7 +235,7 @@ impl InodeMap {
235235 handle. is_none ( ) || data. handle . file_handle ( ) . is_none ( )
236236 } )
237237 } )
238- . map ( Arc :: clone )
238+ . cloned ( )
239239 }
240240
241241 fn get_map_mut ( & self ) -> RwLockWriteGuard < InodeStore > {
@@ -336,7 +336,7 @@ impl HandleMap {
336336 . unwrap ( )
337337 . get ( & handle)
338338 . filter ( |hd| hd. inode == inode)
339- . map ( Arc :: clone )
339+ . cloned ( )
340340 . ok_or_else ( ebadf)
341341 }
342342}
You can’t perform that action at this time.
0 commit comments