Skip to content

Commit

Permalink
walk: New WorkerState struct shared by the worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
tavianator authored and sharkdp committed Nov 2, 2023
1 parent cd32a38 commit 8bbbd76
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 292 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fn run() -> Result<ExitCode> {
.map(|pat| build_regex(pat, &config))
.collect::<Result<Vec<Regex>>>()?;

walk::scan(&search_paths, Arc::new(regexps), Arc::new(config))
walk::scan(&search_paths, regexps, config)
}

#[cfg(feature = "completions")]
Expand Down

0 comments on commit 8bbbd76

Please sign in to comment.