From ad80305210d4d6dd2444d66b439b75acf2096e0b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 7 Feb 2024 16:03:03 -0600 Subject: [PATCH] fix(cli): Actually run single-threaded --- crates/typos-cli/src/bin/typos-cli/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typos-cli/src/bin/typos-cli/main.rs b/crates/typos-cli/src/bin/typos-cli/main.rs index 629e666..bcaaf18 100644 --- a/crates/typos-cli/src/bin/typos-cli/main.rs +++ b/crates/typos-cli/src/bin/typos-cli/main.rs @@ -225,7 +225,7 @@ fn run_checks(args: &args::Args) -> proc_exit::ExitResult { let single_threaded = threads == 1; let mut walk = ignore::WalkBuilder::new(path); - walk.threads(args.threads) + walk.threads(threads) .skip_stdout(true) .hidden(walk_policy.ignore_hidden()) .ignore(walk_policy.ignore_dot())