summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-06 19:33:19 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-06 19:33:19 -0400
commit9948e0ca07ffbdc40a5024e553646568fd3ab97b (patch)
tree36d8e90a2789040506816aba5e1d0325179d8781 /src/main.rs
parentfd3e5069b6a4149e82789d5e1aad9fb7a8b49a77 (diff)
Only create the Grep searcher once.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 55be1969..10611907 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -99,7 +99,7 @@ fn run(args: Args) -> Result<u64> {
chan_work: stealer.clone(),
inpbuf: args.input_buffer(),
outbuf: Some(vec![]),
- grep: try!(args.grep()),
+ grep: args.grep(),
match_count: 0,
};
workers.push(thread::spawn(move || worker.run()));