From d8c7d9cd0b9cd5168fb5165c344aa99f84608827 Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Wed, 3 Jun 2026 21:12:28 -0700 Subject: [PATCH] fix clippy --- lib/src/analysis/analyzer.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/src/analysis/analyzer.rs b/lib/src/analysis/analyzer.rs index c7dc085..bd6db9a 100644 --- a/lib/src/analysis/analyzer.rs +++ b/lib/src/analysis/analyzer.rs @@ -224,7 +224,7 @@ impl AnalysisLineNormalizer { } } -#[derive(Serialize, Debug)] +#[derive(Serialize, Debug, Default)] pub struct AnalysisRow { pub packet_timestamp: Option>, pub skipped_message_reason: Option, @@ -233,11 +233,7 @@ pub struct AnalysisRow { impl AnalysisRow { pub fn new() -> Self { - Self { - packet_timestamp: None, - skipped_message_reason: None, - events: vec![], - } + Self::default() } pub fn is_empty(&self) -> bool {