From 38b789ca6d061239e6cecc76f0843d6ba8b9bd01 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 31 Oct 2022 00:23:13 +0100 Subject: [PATCH] cargo fmt --- src/ecss.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ecss.rs b/src/ecss.rs index d497c65..759587e 100644 --- a/src/ecss.rs +++ b/src/ecss.rs @@ -1,7 +1,7 @@ //! Common definitions and helpers required to create PUS TMTC packets according to //! [ECSS-E-ST-70-41C](https://ecss.nl/standard/ecss-e-st-70-41c-space-engineering-telemetry-and-telecommand-packet-utilization-15-april-2016/) -use core::fmt::Debug; use crate::{ByteConversionError, CcsdsPacket, SizeMissmatch}; +use core::fmt::Debug; use core::mem::size_of; use crc::{Crc, CRC_16_IBM_3740}; use serde::{Deserialize, Serialize}; @@ -211,7 +211,7 @@ impl ToBeBytes for u64 { } } -#[derive (Debug, Copy, Clone, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Eq, PartialEq)] pub struct GenericEcssEnumWrapper { val: TYPE, } @@ -243,7 +243,10 @@ impl EcssEnumeration for GenericEcssEnumWrapper { } } -impl EcssEnumerationExt for GenericEcssEnumWrapper {} +impl EcssEnumerationExt + for GenericEcssEnumWrapper +{ +} pub type EcssEnumU8 = GenericEcssEnumWrapper; pub type EcssEnumU16 = GenericEcssEnumWrapper;