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