move deprecation blocks
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
This commit is contained in:
parent
05eb9d44ef
commit
98e2a73aa2
@ -854,7 +854,8 @@ impl PartialEq<PusTcReader<'_>> for PusTcCreator<'_> {
|
|||||||
#[cfg(all(test, feature = "std"))]
|
#[cfg(all(test, feature = "std"))]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::ecss::tc::{
|
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::PusVersion::PusC;
|
||||||
use crate::ecss::{PusError, PusPacket, SerializablePusPacket};
|
use crate::ecss::{PusError, PusPacket, SerializablePusPacket};
|
||||||
|
@ -18,10 +18,6 @@ use zerocopy::AsBytes;
|
|||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
use delegate::delegate;
|
use delegate::delegate;
|
||||||
|
|
||||||
#[deprecated(
|
|
||||||
since = "0.7.0",
|
|
||||||
note = "Use specialized PusTmCreator or PusTmReader classes instead"
|
|
||||||
)]
|
|
||||||
pub use legacy_tm::*;
|
pub use legacy_tm::*;
|
||||||
|
|
||||||
/// Length without timestamp
|
/// 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
|
/// * `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
|
/// 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
|
/// the correct value to this field manually
|
||||||
|
#[deprecated(
|
||||||
|
since = "0.7.0",
|
||||||
|
note = "Use specialized PusTmCreator or PusTmReader classes instead"
|
||||||
|
)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
sp_header: &mut SpHeader,
|
sp_header: &mut SpHeader,
|
||||||
sec_header: PusTmSecondaryHeader<'raw_data>,
|
sec_header: PusTmSecondaryHeader<'raw_data>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user