summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/disks/heim
diff options
context:
space:
mode:
authorMateusz MikuĊ‚a <mati865@users.noreply.github.com>2021-12-28 20:31:42 +0100
committerGitHub <noreply@github.com>2021-12-28 14:31:42 -0500
commit72f2aeaab6d2a8e1f5177b26df11ba0999bced8d (patch)
treefc1e8d7a96d8f08f4231797689df4715afd82c1b /src/app/data_harvester/disks/heim
parent9eabb061aaad8a1ebf6545dc8f36c98c1e622774 (diff)
Fix Clippy warnings (#647)
Diffstat (limited to 'src/app/data_harvester/disks/heim')
-rw-r--r--src/app/data_harvester/disks/heim/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/data_harvester/disks/heim/mod.rs b/src/app/data_harvester/disks/heim/mod.rs
index a79d00db..c99ae105 100644
--- a/src/app/data_harvester/disks/heim/mod.rs
+++ b/src/app/data_harvester/disks/heim/mod.rs
@@ -127,7 +127,7 @@ pub async fn get_disk_usage(
// The usage line can fail in some cases (for example, if you use Void Linux + LUKS,
// see https://github.com/ClementTsang/bottom/issues/419 for details). As such, check
// it like this instead.
- if let Ok(usage) = heim::disk::usage(partition.mount_point().to_path_buf()).await {
+ if let Ok(usage) = heim::disk::usage(partition.mount_point()).await {
vec_disks.push(DiskHarvest {
free_space: Some(usage.free().get::<heim::units::information::byte>()),
used_space: Some(usage.used().get::<heim::units::information::byte>()),