diff --git a/lib/src/analysis/analyzer.rs b/lib/src/analysis/analyzer.rs index 7291996..e7486d4 100644 --- a/lib/src/analysis/analyzer.rs +++ b/lib/src/analysis/analyzer.rs @@ -47,7 +47,5 @@ pub trait Analyzer { /// heuristic deems it relevant. Again, be mindful of any state your /// [Analyzer] updates per message, since it may be run over hundreds or /// thousands of them alongside many other [Analyzers](Analyzer). - fn analyze_information_element(&mut self, ie: &InformationElement) -> Option { - None - } + fn analyze_information_element(&mut self, ie: &InformationElement) -> Option; } diff --git a/lib/src/analysis/information_element.rs b/lib/src/analysis/information_element.rs index d9a0494..653b221 100644 --- a/lib/src/analysis/information_element.rs +++ b/lib/src/analysis/information_element.rs @@ -74,7 +74,7 @@ impl TryFrom<&GsmtapMessage> for LteInformationElement { L::BcchDlSchMbms => Ok(R::BcchDlSchMbms(decode(&gsmtap_msg.payload)?)), L::SbcchSlBch => Ok(R::SbcchSlBch(decode(&gsmtap_msg.payload)?)), L::SbcchSlBchV2x => Ok(R::SbcchSlBchV2x(decode(&gsmtap_msg.payload)?)), - subtype => Err(InformationElementError::UnsupportedGsmtapType(gsmtap_msg.header.gsmtap_type)), + _ => Err(InformationElementError::UnsupportedGsmtapType(gsmtap_msg.header.gsmtap_type)), }; } Err(InformationElementError::UnsupportedGsmtapType(gsmtap_msg.header.gsmtap_type))