From 98e2a73aa2938207953557f838688c72715f7359 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 10 Jul 2023 11:59:45 +0200 Subject: [PATCH] move deprecation blocks --- src/ecss/tc.rs | 11 ++++++----- src/ecss/tm.rs | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/ecss/tc.rs b/src/ecss/tc.rs index 2182b8f..5d9918e 100644 --- a/src/ecss/tc.rs +++ b/src/ecss/tc.rs @@ -263,8 +263,8 @@ pub mod legacy_tc { impl<'raw_data> PusTc<'raw_data> { #[deprecated( - since = "0.7.0", - note = "Use specialized PusTcCreator or PusTcReader classes instead" + since = "0.7.0", + note = "Use specialized PusTcCreator or PusTcReader classes instead" )] /// Generates a new struct instance. /// @@ -301,8 +301,8 @@ pub mod legacy_tc { } #[deprecated( - since = "0.7.0", - note = "Use specialized PusTcCreator or PusTcReader classes instead" + since = "0.7.0", + note = "Use specialized PusTcCreator or PusTcReader classes instead" )] /// Simplified version of the [PusTc::new] function which allows to only specify service and /// subservice instead of the full PUS TC secondary header. @@ -854,7 +854,8 @@ impl PartialEq> for PusTcCreator<'_> { #[cfg(all(test, feature = "std"))] mod tests { use crate::ecss::tc::{ - GenericPusTcSecondaryHeader, PusTcCreator, PusTcReader, PusTcSecondaryHeader, ACK_ALL, + GenericPusTcSecondaryHeader, PusTc, PusTcCreator, PusTcReader, PusTcSecondaryHeader, + ACK_ALL, }; use crate::ecss::PusVersion::PusC; use crate::ecss::{PusError, PusPacket, SerializablePusPacket}; diff --git a/src/ecss/tm.rs b/src/ecss/tm.rs index 62bd139..df377b3 100644 --- a/src/ecss/tm.rs +++ b/src/ecss/tm.rs @@ -18,10 +18,6 @@ use zerocopy::AsBytes; use alloc::vec::Vec; use delegate::delegate; -#[deprecated( - since = "0.7.0", - note = "Use specialized PusTmCreator or PusTmReader classes instead" -)] pub use legacy_tm::*; /// Length without timestamp @@ -262,6 +258,10 @@ pub mod legacy_tm { /// * `set_ccsds_len` - Can be used to automatically update the CCSDS space packet data length /// field. If this is not set to true, [PusTm::update_ccsds_data_len] can be called to set /// the correct value to this field manually + #[deprecated( + since = "0.7.0", + note = "Use specialized PusTmCreator or PusTmReader classes instead" + )] pub fn new( sp_header: &mut SpHeader, sec_header: PusTmSecondaryHeader<'raw_data>,