run cargo fmt

This commit is contained in:
Will Greenberg
2026-07-15 15:07:10 -07:00
parent 1702184a10
commit dc152c495e
3 changed files with 10 additions and 12 deletions
+8 -8
View File
@@ -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<u32, DekuError> {
Ok(grant & 0xfffff)
}
}
}
}
#[derive(DekuRead, DekuWrite, Debug, Clone, PartialEq)]
#[deku(ctx = "version: u8", id = "version")]
+1 -3
View File
@@ -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)]
+1 -1
View File
@@ -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()?,
);