diff --git a/lib/src/diag/diaglog/mac.rs b/lib/src/diag/diaglog/mac.rs index ae716ac..d219b24 100644 --- a/lib/src/diag/diaglog/mac.rs +++ b/lib/src/diag/diaglog/mac.rs @@ -148,9 +148,9 @@ pub mod rach { match self.grant { Msg3Grant::V1 { grant } => grant, Msg3Grant::V32 { grant } => grant, - } - } - } + } + } + } #[derive(DekuRead, DekuWrite, Debug, Clone, PartialEq)] #[deku(ctx = "version: u8", id = "version")] @@ -159,19 +159,19 @@ pub mod rach { V1 { #[deku(endian = "little", map = "Msg3Grant::map_grant")] grant: u32, - }, + }, #[deku(id_pat = "0x32..")] V32 { #[deku(endian = "big", map = "Msg3Grant::map_grant")] grant: u32, - }, - } + }, + } impl Msg3Grant { fn map_grant(grant: u32) -> Result { Ok(grant & 0xfffff) - } - } + } + } #[derive(DekuRead, DekuWrite, Debug, Clone, PartialEq)] #[deku(ctx = "version: u8", id = "version")] diff --git a/lib/src/diag/diaglog/mod.rs b/lib/src/diag/diaglog/mod.rs index 1d50d27..6f01c32 100644 --- a/lib/src/diag/diaglog/mod.rs +++ b/lib/src/diag/diaglog/mod.rs @@ -93,9 +93,7 @@ pub enum LogBody { #[deku(id = "0xb064")] LteMacUl { packet: mac::Packet }, #[deku(id = "0xb114")] - LteLl1ServingCellTiming { - data: ll1::ServingCellTiming, - }, + LteLl1ServingCellTiming { data: ll1::ServingCellTiming }, } #[derive(Debug, Clone, PartialEq, DekuRead, DekuWrite)] diff --git a/lib/src/gsmtap/mac.rs b/lib/src/gsmtap/mac.rs index 0f95f93..f5eb8ba 100644 --- a/lib/src/gsmtap/mac.rs +++ b/lib/src/gsmtap/mac.rs @@ -106,7 +106,7 @@ pub fn mac_subpacket_to_gsmtap( ETRAPIDSubheader { extended: false, type_field: true, - rapid: msg1.get_preamble_index() & 0b111111 + rapid: msg1.get_preamble_index() & 0b111111, } .to_bytes()?, );