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]