From 62d60c671dd544539a1e77405618bef197442267 Mon Sep 17 00:00:00 2001 From: kamiyaa Date: Thu, 23 Jan 2025 17:26:55 +0800 Subject: [PATCH] fix spacing --- rust/main/utils/run-locally/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/main/utils/run-locally/src/utils.rs b/rust/main/utils/run-locally/src/utils.rs index 2c8cabcfde..8888cf35c0 100644 --- a/rust/main/utils/run-locally/src/utils.rs +++ b/rust/main/utils/run-locally/src/utils.rs @@ -122,6 +122,7 @@ pub fn stop_child(child: &mut Child) { pub fn get_matching_lines(file: &File, search_strings: &[&str]) -> HashMap { let reader = io::BufReader::new(file); let mut matches = HashMap::new(); + let mut lines = reader.lines(); while let Some(Ok(line)) = lines.next() { search_strings.iter().for_each(|search_string| { @@ -137,7 +138,6 @@ pub fn get_matching_lines(file: &File, search_strings: &[&str]) -> HashMap Vec { let reader = io::BufReader::new(file); let mut lines = reader.lines(); - let mut matched_lines = Vec::new(); while let Some(Ok(line)) = lines.next() { if line.contains(search_string) {