diff --git a/src/time/cds.rs b/src/time/cds.rs index 7b1be71..3db55bd 100644 --- a/src/time/cds.rs +++ b/src/time/cds.rs @@ -17,9 +17,6 @@ use core::ops::{Add, AddAssign}; use core::time::Duration; use delegate::delegate; -#[cfg(feature = "std")] -use std_mod::*; - /// Base value for the preamble field for a time field parser to determine the time field type. pub const P_FIELD_BASE: u8 = (CcsdsTimeCodes::Cds as u8) << 4; pub const MIN_CDS_FIELD_LEN: usize = 7; diff --git a/src/time/mod.rs b/src/time/mod.rs index 6b91199..44d62a2 100644 --- a/src/time/mod.rs +++ b/src/time/mod.rs @@ -16,6 +16,8 @@ use serde::{Deserialize, Serialize}; use std::error::Error; #[cfg(feature = "std")] use std::time::{SystemTime, SystemTimeError}; +#[cfg(feature = "std")] +use std_mod::*; pub mod ascii; pub mod cds;