From e736f78c3e14064446edac614f5fc5e6a7bb02e5 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Sat, 2 Aug 2025 16:17:56 +0200 Subject: [PATCH] removed unused imports --- WatcherAgent/src/main.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WatcherAgent/src/main.rs b/WatcherAgent/src/main.rs index 9eb6c6c..28ccb82 100644 --- a/WatcherAgent/src/main.rs +++ b/WatcherAgent/src/main.rs @@ -5,8 +5,8 @@ use nvml_wrapper::Nvml; use reqwest::{Client, StatusCode}; use serde::{Deserialize, Serialize}; -use std::{any::Any, error::Error, fs, process::Command, time::Duration}; -use sysinfo::{Components, Disks, Networks, System}; +use std::{error::Error, time::Duration}; +use sysinfo::{Components, Disks, System}; use tokio::time::{interval, sleep, Instant}; // Windows specific imports @@ -470,7 +470,7 @@ fn get_cpu_temp() -> Option { #[cfg(target_os = "windows")] { use com::runtime::init_runtime; - use com::sys::{CLSCTX_INPROC_SERVER, COINIT_MULTITHREADED, FAILED}; + use com::sys::{CLSCTX_INPROC_SERVER, FAILED}; use widestring::U16CString; use winapi::shared::rpcdce::*; use winapi::shared::wtypes::VT_I4; @@ -712,7 +712,7 @@ fn get_network_traffic() -> Option<(u64, u64)> { #[cfg(target_os = "windows")] { use std::ptr::null_mut; - use winapi::shared::ifmib::{MIB_IFROW, MIB_IFTABLE}; + use winapi::shared::ifmib::MIB_IFTABLE; use winapi::um::iphlpapi::GetIfTable; unsafe { @@ -818,7 +818,6 @@ async fn main() -> Result<(), Box> { #[cfg(test)] mod tests { use super::*; - use tokio::runtime::Runtime; // Test CPU temperature collection #[test]