From bd60ba6cf345f215835476f6cac017894ed47b3c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 25 Mar 2024 14:18:27 +0100 Subject: [PATCH] formatting --- src/time/cds.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/time/cds.rs b/src/time/cds.rs index 57edb01..5d4708c 100644 --- a/src/time/cds.rs +++ b/src/time/cds.rs @@ -1950,11 +1950,9 @@ mod tests { .unwrap() .and_local_timezone(chrono::Utc) .unwrap(); - let time_provider = CdsTime::from_unix_time_with_u16_days( - &datetime_utc.into(), - SubmillisPrecision::Absent, - ) - .expect("creating provider from unix stamp failed"); + let time_provider = + CdsTime::from_unix_time_with_u16_days(&datetime_utc.into(), SubmillisPrecision::Absent) + .expect("creating provider from unix stamp failed"); // https://www.timeanddate.com/date/durationresult.html?d1=01&m1=01&y1=1958&d2=14&m2=01&y2=2023 // Leap years need to be accounted for as well. assert_eq!(time_provider.ccsds_days, 23754);