From 05d4e8215351e0f05f366d7f25aceb3dfe49dfdc Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Sun, 15 Sep 2019 01:32:08 -0400 Subject: [skip travis] Changed rustfmt, formatting. --- src/app/data_collection/disks.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/app/data_collection/disks.rs') diff --git a/src/app/data_collection/disks.rs b/src/app/data_collection/disks.rs index 1700ddbb..4e532b8a 100644 --- a/src/app/data_collection/disks.rs +++ b/src/app/data_collection/disks.rs @@ -48,7 +48,10 @@ pub async fn get_io_usage_list(get_physical : bool) -> Result Result, heim::Error> { @@ -65,7 +68,13 @@ pub async fn get_disk_usage_list() -> Result, heim::Error> { used_space : usage.used().get::(), total_space : usage.total().get::(), mount_point : Box::from(partition.mount_point().to_str().unwrap_or("Name Unavailable")), - name : Box::from(partition.device().unwrap_or_else(|| std::ffi::OsStr::new("Name Unavailable")).to_str().unwrap_or("Name Unavailable")), + name : Box::from( + partition + .device() + .unwrap_or_else(|| std::ffi::OsStr::new("Name Unavailable")) + .to_str() + .unwrap_or("Name Unavailable"), + ), }); } } -- cgit v1.2.3