mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-14 00:23:34 -07:00
appease clippy
This commit is contained in:
committed by
Cooper Quintin
parent
0585e0f996
commit
1a4deb7524
+5
-4
@@ -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();
|
||||
|
||||
@@ -200,7 +200,7 @@ impl Harness {
|
||||
return row;
|
||||
}
|
||||
};
|
||||
return row;
|
||||
row
|
||||
}
|
||||
|
||||
pub fn analyze_qmdl_messages(&mut self, container: MessagesContainer) -> Vec<AnalysisRow> {
|
||||
|
||||
Reference in New Issue
Block a user