mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
Fix clippy complaints
This commit is contained in:
committed by
Markus Unterwaditzer
parent
2b86691e57
commit
94289dcad5
@@ -175,7 +175,7 @@ impl Harness {
|
||||
let qmdl_message = match maybe_qmdl_message {
|
||||
Ok(msg) => msg,
|
||||
Err(err) => {
|
||||
row.skipped_message_reasons.push(format!("{:?}", err));
|
||||
row.skipped_message_reasons.push(format!("{err:?}"));
|
||||
continue;
|
||||
}
|
||||
};
|
||||
@@ -183,7 +183,7 @@ impl Harness {
|
||||
let gsmtap_message = match gsmtap_parser::parse(qmdl_message) {
|
||||
Ok(msg) => msg,
|
||||
Err(err) => {
|
||||
row.skipped_message_reasons.push(format!("{:?}", err));
|
||||
row.skipped_message_reasons.push(format!("{err:?}"));
|
||||
continue;
|
||||
}
|
||||
};
|
||||
@@ -195,7 +195,7 @@ impl Harness {
|
||||
let element = match InformationElement::try_from(&gsmtap_msg) {
|
||||
Ok(element) => element,
|
||||
Err(err) => {
|
||||
row.skipped_message_reasons.push(format!("{:?}", err));
|
||||
row.skipped_message_reasons.push(format!("{err:?}"));
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -42,7 +42,7 @@ impl Analyzer for ConnectionRedirect2GDowngradeAnalyzer {
|
||||
}),
|
||||
_ => Some(Event {
|
||||
event_type: EventType::Informational,
|
||||
message: format!("RRCConnectionRelease CarrierInfo: {:?}", carrier_info),
|
||||
message: format!("RRCConnectionRelease CarrierInfo: {carrier_info:?}"),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
use std::any::Any;
|
||||
use std::borrow::Cow;
|
||||
|
||||
use pycrate_rs::nas::emm::EMMMessage;
|
||||
use pycrate_rs::nas::generated::emm::emm_identity_request::{EMMIdentityRequest, IDTypeV};
|
||||
use pycrate_rs::nas::generated::emm::emm_identity_request::IDTypeV;
|
||||
use pycrate_rs::nas::NASMessage;
|
||||
|
||||
use super::analyzer::{Analyzer, Event, EventType, Severity};
|
||||
@@ -54,10 +53,9 @@ impl Analyzer for ImsiRequestedAnalyzer {
|
||||
},
|
||||
message: format!(
|
||||
"NAS IMSI identity request detected, however it was within \
|
||||
the first {} packets of this analysis. If you just \
|
||||
the first {PACKET_THRESHHOLD} packets of this analysis. If you just \
|
||||
turned your device on, this is likely a \
|
||||
false-positive.",
|
||||
PACKET_THRESHHOLD
|
||||
false-positive."
|
||||
),
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user