diff options
Diffstat (limited to 'src/data_collection/processes.rs')
-rw-r--r-- | src/data_collection/processes.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/data_collection/processes.rs b/src/data_collection/processes.rs index b6c4522d..08b48a29 100644 --- a/src/data_collection/processes.rs +++ b/src/data_collection/processes.rs @@ -3,13 +3,8 @@ //! For Linux, this is handled by a custom set of functions. //! For Windows, macOS, FreeBSD, Android, and Linux, this is handled by sysinfo. -use std::{borrow::Cow, time::Duration}; - use cfg_if::cfg_if; -use super::DataCollector; -use crate::{utils::error, Pid}; - cfg_if! { if #[cfg(target_os = "linux")] { pub mod linux; @@ -36,6 +31,11 @@ cfg_if! { } } +use std::{borrow::Cow, time::Duration}; + +use super::DataCollector; +use crate::{utils::error, Pid}; + #[derive(Debug, Clone, Default)] pub struct ProcessHarvest { /// The pid of the process. |