diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d3f409..412758f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). # [unreleased] +## Fixed + +- Remove `Default` derive on CDS time provider. This can lead to uninitialized preamble fields. + ## Changed - `serde` support is now optional and behind the `serde` feature. diff --git a/src/time/cds.rs b/src/time/cds.rs index b22015b..f826803 100644 --- a/src/time/cds.rs +++ b/src/time/cds.rs @@ -124,7 +124,7 @@ pub fn precision_from_pfield(pfield: u8) -> SubmillisPrecision { /// assert_eq!(stamp_deserialized.len_as_bytes(), 7); /// } /// ``` -#[derive(Debug, Copy, Clone, Default, PartialEq, Eq)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct TimeProvider { pfield: u8,