mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-02 10:19:59 -07:00
cargo fmt
This commit is contained in:
committed by
Cooper Quintin
parent
efae6203a9
commit
23a0f72c2f
@@ -4,8 +4,8 @@
|
|||||||
//! standard.
|
//! standard.
|
||||||
|
|
||||||
use crate::gsmtap::{GsmtapMessage, GsmtapType, LteNasSubtype, LteRrcSubtype};
|
use crate::gsmtap::{GsmtapMessage, GsmtapType, LteNasSubtype, LteRrcSubtype};
|
||||||
use telcom_parser::{decode, lte_rrc};
|
|
||||||
use pycrate_rs::nas::NASMessage;
|
use pycrate_rs::nas::NASMessage;
|
||||||
|
use telcom_parser::{decode, lte_rrc};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
@@ -93,7 +93,9 @@ impl TryFrom<&GsmtapMessage> for InformationElement {
|
|||||||
}
|
}
|
||||||
GsmtapType::LteNas(LteNasSubtype::Plain) => {
|
GsmtapType::LteNas(LteNasSubtype::Plain) => {
|
||||||
let msg = NASMessage::parse(&gsmtap_msg.payload)?;
|
let msg = NASMessage::parse(&gsmtap_msg.payload)?;
|
||||||
Ok(InformationElement::LTE(Box::new(LteInformationElement::NAS(msg))))
|
Ok(InformationElement::LTE(Box::new(
|
||||||
|
LteInformationElement::NAS(msg),
|
||||||
|
)))
|
||||||
}
|
}
|
||||||
_ => Err(InformationElementError::UnsupportedGsmtapType(
|
_ => Err(InformationElementError::UnsupportedGsmtapType(
|
||||||
gsmtap_msg.header.gsmtap_type,
|
gsmtap_msg.header.gsmtap_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user