diff --git a/check/src/main.rs b/check/src/main.rs index 1a90dde..d452ecc 100644 --- a/check/src/main.rs +++ b/check/src/main.rs @@ -40,9 +40,10 @@ struct Report { impl Report { fn new(file_path: &str) -> Self { - let mut report = Report::default(); - report.file_path = file_path.to_string(); - report + Report { + file_path: file_path.to_string(), + ..Default::default() + } } fn process_row(&mut self, row: AnalysisRow) { @@ -191,7 +192,7 @@ async fn main() { for maybe_entry in WalkDir::new(&args.path) { let Ok(entry) = maybe_entry else { - error!("failed to open dir entry {:?}", maybe_entry); + error!("failed to open dir entry {maybe_entry:?}"); continue; }; let name = entry.file_name(); diff --git a/lib/src/analysis/analyzer.rs b/lib/src/analysis/analyzer.rs index 985337c..b06a60a 100644 --- a/lib/src/analysis/analyzer.rs +++ b/lib/src/analysis/analyzer.rs @@ -200,7 +200,7 @@ impl Harness { return row; } }; - return row; + row } pub fn analyze_qmdl_messages(&mut self, container: MessagesContainer) -> Vec {