From 40f64525b6c4f099a1d3af5dd52f83dcc972e1b6 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sat, 14 Jan 2023 15:43:49 +0100 Subject: [PATCH] some smaller tweaks --- 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 75ce2e1..80d657c 100644 --- a/src/time/cds.rs +++ b/src/time/cds.rs @@ -530,14 +530,14 @@ impl TimeProvider { } #[cfg(feature = "std")] - pub fn from_now_generic(days_len: LengthOfDaySegment) -> Result { + fn from_now_generic(days_len: LengthOfDaySegment) -> Result { let conversion_from_now = ConversionFromNow::new()?; Self::generic_from_conversion(days_len, conversion_from_now) .map_err(StdTimestampError::TimestampError) } #[cfg(feature = "std")] - pub fn from_now_generic_us_prec( + fn from_now_generic_us_prec( days_len: LengthOfDaySegment, ) -> Result { let conversion_from_now = ConversionFromNow::new_with_submillis_us_prec()?; @@ -546,7 +546,7 @@ impl TimeProvider { } #[cfg(feature = "std")] - pub fn from_now_generic_ps_prec( + fn from_now_generic_ps_prec( days_len: LengthOfDaySegment, ) -> Result { let conversion_from_now = ConversionFromNow::new_with_submillis_ps_prec()?; @@ -608,8 +608,6 @@ impl TimeProvider { #[cfg(feature = "std")] #[cfg_attr(doc_cfg, doc(cfg(feature = "std")))] pub fn update_from_now(&mut self) -> Result<(), StdTimestampError> - where - ::FieldType: TryFrom, { let conversion_from_now = self.generic_conversion_from_now()?; let ccsds_days: ProvidesDaysLen::FieldType = conversion_from_now