From 3edf13cca2b718611663a34326065bf0708282c4 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 29 Mar 2024 13:49:21 +0100 Subject: [PATCH] small fix for serde --- src/ecss/tm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ecss/tm.rs b/src/ecss/tm.rs index 43388ee..751cb11 100644 --- a/src/ecss/tm.rs +++ b/src/ecss/tm.rs @@ -212,6 +212,7 @@ impl<'slice> TryFrom> for PusTmSecondaryHeader<'slice #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct PusTmCreator<'time, 'raw_data> { pub sp_header: SpHeader, + #[cfg_attr(feature="serde", serde(borrow))] pub sec_header: PusTmSecondaryHeader<'time>, source_data: &'raw_data [u8], /// If this is set to false, a manual call to [PusTm::calc_own_crc16] or