mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-10 02:28:10 -07:00
run cargo fmt
This commit is contained in:
@@ -9,9 +9,17 @@ pub struct ServingCellTiming {
|
||||
pub num_records: u8,
|
||||
#[deku(bits = 4, assert = "*starting_sub_fn <= 9")]
|
||||
pub starting_sub_fn: u8,
|
||||
#[deku(bits = 10, pad_bits_after = "5", assert = "*starting_system_fn <= 1023")]
|
||||
#[deku(
|
||||
bits = 10,
|
||||
pad_bits_after = "5",
|
||||
assert = "*starting_system_fn <= 1023"
|
||||
)]
|
||||
pub starting_system_fn: u16,
|
||||
#[deku(bits = 19, pad_bits_after = "13", assert = "*starting_dl_frame_timing_offs <= 307200")]
|
||||
#[deku(
|
||||
bits = 19,
|
||||
pad_bits_after = "13",
|
||||
assert = "*starting_dl_frame_timing_offs <= 307200"
|
||||
)]
|
||||
pub starting_dl_frame_timing_offs: u32, // in Ts units
|
||||
#[deku(bits = 19, assert = "*starting_ul_frame_timing_offs <= 307200")]
|
||||
pub starting_ul_frame_timing_offs: u32, // in Ts units
|
||||
@@ -24,7 +32,10 @@ pub struct ServingCellTiming {
|
||||
#[derive(Debug, Clone, PartialEq, DekuRead, DekuWrite)]
|
||||
#[deku(bit_order = "lsb", ctx = "_: deku::ctx::Order")]
|
||||
pub struct TimingAdjustment {
|
||||
#[deku(bits = 11, assert = "(-512..=511).contains(dl_frame_timing_adjustment)")]
|
||||
#[deku(
|
||||
bits = 11,
|
||||
assert = "(-512..=511).contains(dl_frame_timing_adjustment)"
|
||||
)]
|
||||
pub dl_frame_timing_adjustment: i16, // in Ts units
|
||||
#[deku(bits = 5, assert = "(-16..=15).contains(ul_frame_timing_adjustment)")]
|
||||
pub ul_frame_timing_adjustment: i8, // in Ts units
|
||||
|
||||
@@ -96,7 +96,7 @@ pub enum LogBody {
|
||||
LteLl1ServingCellTiming {
|
||||
#[deku(ctx = "deku::ctx::Order::Lsb0")]
|
||||
data: ll1::ServingCellTiming,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, DekuRead, DekuWrite)]
|
||||
|
||||
+1
-1
@@ -168,7 +168,7 @@ impl Message {
|
||||
LogBody::LteMacRachResponse { .. } => true,
|
||||
LogBody::LteMl1NeighborCellsMeasurements { .. } => true,
|
||||
LogBody::Nas4GMessage { .. } => true,
|
||||
_ => false
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user