From ffcab9592e762de4cc66ae69646f52b7f29ccca6 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 21 Sep 2023 18:36:59 +0200 Subject: [PATCH] clippy fix --- satrs-core/src/cfdp/mod.rs | 5 ++--- satrs-core/src/cfdp/source.rs | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/satrs-core/src/cfdp/mod.rs b/satrs-core/src/cfdp/mod.rs index a138fee..dc6e87a 100644 --- a/satrs-core/src/cfdp/mod.rs +++ b/satrs-core/src/cfdp/mod.rs @@ -61,16 +61,15 @@ pub trait CheckTimerCreator { #[cfg(feature = "std")] pub struct StdCheckTimer { expiry_time_seconds: u64, - start_time: std::time::Instant + start_time: std::time::Instant, } - #[cfg(feature = "std")] impl StdCheckTimer { pub fn new(expiry_time_seconds: u64) -> Self { Self { expiry_time_seconds, - start_time: std::time::Instant::now() + start_time: std::time::Instant::now(), } } } diff --git a/satrs-core/src/cfdp/source.rs b/satrs-core/src/cfdp/source.rs index 8b17c11..146f5be 100644 --- a/satrs-core/src/cfdp/source.rs +++ b/satrs-core/src/cfdp/source.rs @@ -6,11 +6,9 @@ pub struct SourceHandler { impl SourceHandler { pub fn new(id: impl Into) -> Self { - Self { id } + Self { id: id.into() } } } #[cfg(test)] -mod tests { - -} +mod tests {}