From b35e431200c1e7da0794bcf5784158cb6b494d5a Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Mon, 11 Aug 2025 22:46:58 -0700 Subject: [PATCH] clippy clean up --- socktop_agent/src/metrics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/socktop_agent/src/metrics.rs b/socktop_agent/src/metrics.rs index 7ed4870..f6f84e6 100644 --- a/socktop_agent/src/metrics.rs +++ b/socktop_agent/src/metrics.rs @@ -71,7 +71,7 @@ pub async fn collect_metrics(state: &AppState) -> Metrics { .map(|(name, data)| NetworkInfo { name: name.to_string(), received: data.total_received(), - transmitted: data.total_transmitted() + transmitted: data.total_transmitted(), }) .collect() }; @@ -86,7 +86,7 @@ pub async fn collect_metrics(state: &AppState) -> Metrics { pid: p.pid().as_u32(), name: p.name().to_string_lossy().into_owned(), cpu_usage: p.cpu_usage(), - mem_bytes: p.memory() + mem_bytes: p.memory(), }) .collect() }; @@ -133,6 +133,6 @@ pub async fn collect_metrics(state: &AppState) -> Metrics { disks, networks, top_processes: procs, - gpus + gpus, } } \ No newline at end of file