Skip to content

Commit 504996c

Browse files
committed
refactor: replace lambda with function name
1 parent 48b844b commit 504996c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/hdd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ fn path_is_in_hdd<Disk: DiskApi, Fs: FsApi>(path: &Path, disks: &[Disk]) -> bool
262262
disks
263263
.iter()
264264
.filter(|disk| disk.get_mount_point() == mount_point)
265-
.any(|disk| is_hdd::<Fs>(disk))
265+
.any(is_hdd::<Fs>)
266266
}
267267

268268
/// Check if a disk is an HDD after applying platform-specific corrections.

0 commit comments

Comments
 (0)