Skip to content

Commit

Permalink
Use search_and_format in binary
Browse files Browse the repository at this point in the history
  • Loading branch information
sirbrillig committed Jul 25, 2024
1 parent 73cc418 commit 70a8b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ fn main() {
eprintln!("{err}");
process::exit(exitcode::USAGE);
});
match searcher.search() {
match searcher.search_and_format() {
Ok(results) => {
for line in results {
println!("{}", line.to_grep());
println!("{}", line);
}
}
Err(err) => {
Expand Down

0 comments on commit 70a8b64

Please sign in to comment.