style(rust): 格式化调整

This commit is contained in:
LIghtJUNction
2026-03-27 19:09:41 +08:00
parent eb7f3fec71
commit 60e20f0084
2 changed files with 2 additions and 7 deletions

View File

@@ -608,4 +608,3 @@ impl ProtocolClient for AcpClient {
Ok(())
}
}

View File

@@ -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<f64> {
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]