diff options
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/data_harvester/disks.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/app/data_harvester/disks.rs b/src/app/data_harvester/disks.rs index 2da7c3ad..59e9d13c 100644 --- a/src/app/data_harvester/disks.rs +++ b/src/app/data_harvester/disks.rs @@ -1,3 +1,6 @@ +#[cfg(not(any(target_arch = "aarch64", target_arch = "arm")))] +use futures::stream::StreamExt; + #[derive(Debug, Clone, Default)] pub struct DiskHarvest { pub name: String, @@ -61,8 +64,6 @@ pub async fn arm_disk_usage( pub async fn non_arm_io_usage( get_physical: bool, actually_get: bool, ) -> crate::utils::error::Result<Option<IOHarvest>> { - use futures::stream::StreamExt; - if !actually_get { return Ok(None); } @@ -106,8 +107,6 @@ pub async fn non_arm_io_usage( pub async fn non_arm_disk_usage( actually_get: bool, ) -> crate::utils::error::Result<Option<Vec<DiskHarvest>>> { - use futures::stream::StreamExt; - if !actually_get { return Ok(None); } |