Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Jan 23, 2025
1 parent 451f78d commit 62d60c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/main/utils/run-locally/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ pub fn stop_child(child: &mut Child) {
pub fn get_matching_lines(file: &File, search_strings: &[&str]) -> HashMap<String, u32> {
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| {
Expand All @@ -137,7 +138,6 @@ pub fn get_matching_lines(file: &File, search_strings: &[&str]) -> HashMap<Strin
pub fn get_matched_lines(file: &File, search_string: &str) -> Vec<String> {
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) {
Expand Down

0 comments on commit 62d60c6

Please sign in to comment.