clippy
This commit is contained in:
parent
b938eff9cf
commit
a525d45290
@ -1,7 +1,7 @@
|
|||||||
use crate::{CcsdsPacket, PacketError};
|
use crate::{CcsdsPacket, PacketError};
|
||||||
|
use core::mem::size_of;
|
||||||
use crc::{Crc, CRC_16_IBM_3740};
|
use crc::{Crc, CRC_16_IBM_3740};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use core::mem::size_of;
|
|
||||||
|
|
||||||
/// CRC algorithm used by the PUS standard
|
/// CRC algorithm used by the PUS standard
|
||||||
pub const CRC_CCITT_FALSE: Crc<u16> = Crc::<u16>::new(&CRC_16_IBM_3740);
|
pub const CRC_CCITT_FALSE: Crc<u16> = Crc::<u16>::new(&CRC_16_IBM_3740);
|
||||||
|
@ -420,12 +420,12 @@ pub mod zc {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use alloc::vec;
|
|
||||||
use crate::ser::SpHeader;
|
use crate::ser::SpHeader;
|
||||||
use crate::{
|
use crate::{
|
||||||
packet_type_in_raw_packet_id, zc, CcsdsPacket, CcsdsPrimaryHeader, PacketId,
|
packet_type_in_raw_packet_id, zc, CcsdsPacket, CcsdsPrimaryHeader, PacketId,
|
||||||
PacketSequenceCtrl, PacketType, SequenceFlags,
|
PacketSequenceCtrl, PacketType, SequenceFlags,
|
||||||
};
|
};
|
||||||
|
use alloc::vec;
|
||||||
use postcard::{from_bytes, to_stdvec};
|
use postcard::{from_bytes, to_stdvec};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -89,7 +89,6 @@ pub mod zc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod ser {
|
pub mod ser {
|
||||||
use alloc::vec::Vec;
|
|
||||||
use crate::ecss::{PusError, PusPacket, PusVersion, CRC_CCITT_FALSE};
|
use crate::ecss::{PusError, PusPacket, PusVersion, CRC_CCITT_FALSE};
|
||||||
use crate::ser::SpHeader;
|
use crate::ser::SpHeader;
|
||||||
use crate::tc::{
|
use crate::tc::{
|
||||||
@ -97,9 +96,10 @@ pub mod ser {
|
|||||||
PUS_TC_MIN_LEN_WITHOUT_APP_DATA, PUS_VERSION,
|
PUS_TC_MIN_LEN_WITHOUT_APP_DATA, PUS_VERSION,
|
||||||
};
|
};
|
||||||
use crate::{zc, CcsdsPacket, PacketError, PacketId, PacketSequenceCtrl, PacketType};
|
use crate::{zc, CcsdsPacket, PacketError, PacketId, PacketSequenceCtrl, PacketType};
|
||||||
|
use alloc::vec::Vec;
|
||||||
|
use core::mem::size_of;
|
||||||
use delegate::delegate;
|
use delegate::delegate;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use core::mem::size_of;
|
|
||||||
use zerocopy::AsBytes;
|
use zerocopy::AsBytes;
|
||||||
|
|
||||||
#[derive(PartialEq, Copy, Clone, Serialize, Deserialize)]
|
#[derive(PartialEq, Copy, Clone, Serialize, Deserialize)]
|
||||||
@ -393,13 +393,13 @@ pub mod ser {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use alloc::vec::Vec;
|
|
||||||
use crate::ecss::PusPacket;
|
use crate::ecss::PusPacket;
|
||||||
use crate::ser::SpHeader;
|
use crate::ser::SpHeader;
|
||||||
use crate::tc::ser::PusTc;
|
use crate::tc::ser::PusTc;
|
||||||
use crate::tc::PusTcSecondaryHeader;
|
use crate::tc::PusTcSecondaryHeader;
|
||||||
use crate::tc::ACK_ALL;
|
use crate::tc::ACK_ALL;
|
||||||
use crate::{CcsdsPacket, PacketType};
|
use crate::{CcsdsPacket, PacketType};
|
||||||
|
use alloc::vec::Vec;
|
||||||
use postcard::to_stdvec;
|
use postcard::to_stdvec;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user