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 {
466
466
let mut mountpoints = self . mountpoints . load ( ) . deref ( ) . deref ( ) . clone ( ) ;
467
467
let fs_idx = mountpoints
468
468
. get ( & inode)
469
- . map ( Arc :: clone )
469
+ . cloned ( )
470
470
. map ( |x| {
471
471
// Do not remove pseudofs inode. We keep all pseudofs inode so that
472
472
// 1. they can be reused later on
@@ -650,7 +650,7 @@ impl Vfs {
650
650
if inode. is_pseudo_fs ( ) {
651
651
// ROOT_ID is special, we need to check if we have a mountpoint on the vfs root
652
652
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 ( ) {
654
654
let fs = self . get_fs_by_idx ( mnt. fs_idx ) ?;
655
655
return Ok ( ( Right ( fs) , VfsInode :: new ( mnt. fs_idx , mnt. ino ) ) ) ;
656
656
}
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ impl InodeMap {
193
193
. read ( )
194
194
. unwrap ( )
195
195
. get ( & inode)
196
- . map ( Arc :: clone )
196
+ . cloned ( )
197
197
. ok_or_else ( ebadf)
198
198
}
199
199
@@ -235,7 +235,7 @@ impl InodeMap {
235
235
handle. is_none ( ) || data. handle . file_handle ( ) . is_none ( )
236
236
} )
237
237
} )
238
- . map ( Arc :: clone )
238
+ . cloned ( )
239
239
}
240
240
241
241
fn get_map_mut ( & self ) -> RwLockWriteGuard < InodeStore > {
@@ -336,7 +336,7 @@ impl HandleMap {
336
336
. unwrap ( )
337
337
. get ( & handle)
338
338
. filter ( |hd| hd. inode == inode)
339
- . map ( Arc :: clone )
339
+ . cloned ( )
340
340
. ok_or_else ( ebadf)
341
341
}
342
342
}
You can’t perform that action at this time.
0 commit comments