diff --git a/spacepackets/src/ecss.rs b/spacepackets/src/ecss.rs index 3fe3640..35eb7f2 100644 --- a/spacepackets/src/ecss.rs +++ b/spacepackets/src/ecss.rs @@ -1,7 +1,7 @@ use crate::{CcsdsPacket, PacketError}; +use core::mem::size_of; use crc::{Crc, CRC_16_IBM_3740}; use serde::{Deserialize, Serialize}; -use core::mem::size_of; /// CRC algorithm used by the PUS standard pub const CRC_CCITT_FALSE: Crc = Crc::::new(&CRC_16_IBM_3740); diff --git a/spacepackets/src/lib.rs b/spacepackets/src/lib.rs index 4f2a605..916df41 100644 --- a/spacepackets/src/lib.rs +++ b/spacepackets/src/lib.rs @@ -420,12 +420,12 @@ pub mod zc { #[cfg(test)] mod tests { - use alloc::vec; use crate::ser::SpHeader; use crate::{ packet_type_in_raw_packet_id, zc, CcsdsPacket, CcsdsPrimaryHeader, PacketId, PacketSequenceCtrl, PacketType, SequenceFlags, }; + use alloc::vec; use postcard::{from_bytes, to_stdvec}; #[test] diff --git a/spacepackets/src/tc.rs b/spacepackets/src/tc.rs index 809e9fa..155e591 100644 --- a/spacepackets/src/tc.rs +++ b/spacepackets/src/tc.rs @@ -89,7 +89,6 @@ pub mod zc { } pub mod ser { - use alloc::vec::Vec; use crate::ecss::{PusError, PusPacket, PusVersion, CRC_CCITT_FALSE}; use crate::ser::SpHeader; use crate::tc::{ @@ -97,9 +96,10 @@ pub mod ser { PUS_TC_MIN_LEN_WITHOUT_APP_DATA, PUS_VERSION, }; use crate::{zc, CcsdsPacket, PacketError, PacketId, PacketSequenceCtrl, PacketType}; + use alloc::vec::Vec; + use core::mem::size_of; use delegate::delegate; use serde::{Deserialize, Serialize}; - use core::mem::size_of; use zerocopy::AsBytes; #[derive(PartialEq, Copy, Clone, Serialize, Deserialize)] @@ -393,13 +393,13 @@ pub mod ser { #[cfg(test)] mod tests { - use alloc::vec::Vec; use crate::ecss::PusPacket; use crate::ser::SpHeader; use crate::tc::ser::PusTc; use crate::tc::PusTcSecondaryHeader; use crate::tc::ACK_ALL; use crate::{CcsdsPacket, PacketType}; + use alloc::vec::Vec; use postcard::to_stdvec; #[test]