From e216043a141e9c36c9726ab24c1b7ca9c1f17dd1 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Tue, 2 Sep 2025 09:29:02 -0700 Subject: [PATCH] make analyze_information_element private --- lib/src/analysis/analyzer.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/analysis/analyzer.rs b/lib/src/analysis/analyzer.rs index f362cac..d2ca26f 100644 --- a/lib/src/analysis/analyzer.rs +++ b/lib/src/analysis/analyzer.rs @@ -434,7 +434,11 @@ impl Harness { rows } - pub fn analyze_information_element(&mut self, ie: &InformationElement) -> Vec> { + fn analyze_information_element(&mut self, ie: &InformationElement) -> Vec> { + // This method is private because incrementing packet_num is currently handled entirely by the other + // methods that call this one. This could be changed with some careful refactoring, but + // while this method is only used by other Harness methods, let's keep it private to help + // ensure we always bump packet_num exactly once for each processed packet. let packet_str = format!(" (packet {})", self.packet_num); self.analyzers .iter_mut()