From 60e20f008424acb6eae2a8f5425362eedc81f926 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Fri, 27 Mar 2026 19:09:41 +0800 Subject: [PATCH] =?UTF-8?q?style(rust):=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust/src/protocol.rs | 1 - rust/src/stats.rs | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/rust/src/protocol.rs b/rust/src/protocol.rs index bb43cf830..03b7ead8e 100644 --- a/rust/src/protocol.rs +++ b/rust/src/protocol.rs @@ -608,4 +608,3 @@ impl ProtocolClient for AcpClient { Ok(()) } } - diff --git a/rust/src/stats.rs b/rust/src/stats.rs index a983494b8..c3dc82b21 100644 --- a/rust/src/stats.rs +++ b/rust/src/stats.rs @@ -1,7 +1,7 @@ //! Runtime statistics tracking -use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::Arc; +use std::sync::atomic::{AtomicU64, Ordering}; #[derive(Debug, Clone)] pub struct RuntimeStats { @@ -46,11 +46,7 @@ impl RuntimeStats { #[must_use] pub fn last_activity_time(&self) -> Option { let ts = self.last_activity_time.load(Ordering::Relaxed); - if ts == 0 { - None - } else { - Some(ts as f64) - } + if ts == 0 { None } else { Some(ts as f64) } } #[must_use]