introduce doc_auto_cfg
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
2024-03-24 12:22:08 +01:00
parent 3faffd52fc
commit 3e62d7d411
11 changed files with 4 additions and 39 deletions

View File

@ -341,7 +341,6 @@ impl CucTime {
/// must be applied on top of the UTC based time retrieved from the system in addition to the
/// conversion to the CCSDS epoch.
#[cfg(feature = "std")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "std")))]
pub fn from_now(
fraction_resolution: FractionalResolution,
leap_seconds: u32,
@ -373,7 +372,6 @@ impl CucTime {
/// must be applied on top of the UTC based time retrieved from the system in addition to the
/// conversion to the CCSDS epoch.
#[cfg(feature = "std")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "std")))]
pub fn update_from_now(&mut self, leap_seconds: u32) -> Result<(), StdTimestampError> {
let now = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)?;
self.counter.1 = unix_epoch_to_ccsds_epoch(now.as_secs() as i64) as u32;
@ -393,7 +391,6 @@ impl CucTime {
}
#[cfg(feature = "chrono")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "chrono")))]
pub fn from_chrono_date_time(
dt: &chrono::DateTime<chrono::Utc>,
res: FractionalResolution,