mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 09:35:11 +02:00
fix: Remove threads flag
Don't give the user a false sense of hope. It will be brought back in as part of #7.
This commit is contained in:
+2
-11
@@ -73,10 +73,6 @@ struct Options {
|
||||
)]
|
||||
pub format: Format,
|
||||
|
||||
#[structopt(short = "j", long = "threads", default_value = "0")]
|
||||
/// The approximate number of threads to use.
|
||||
threads: usize,
|
||||
|
||||
#[structopt(long, raw(overrides_with = r#""no-binary""#))]
|
||||
/// Search binary files.
|
||||
binary: bool,
|
||||
@@ -132,11 +128,7 @@ struct Options {
|
||||
}
|
||||
|
||||
impl Options {
|
||||
pub fn infer(mut self) -> Self {
|
||||
if self.path.len() == 1 && self.path[0].is_file() {
|
||||
self.threads = 1;
|
||||
}
|
||||
|
||||
pub fn infer(self) -> Self {
|
||||
self
|
||||
}
|
||||
|
||||
@@ -277,8 +269,7 @@ fn run() -> Result<(), failure::Error> {
|
||||
for path in &options.path[1..] {
|
||||
walk.add(path);
|
||||
}
|
||||
walk.threads(options.threads)
|
||||
.hidden(options.ignore_hidden().unwrap_or(true))
|
||||
walk.hidden(options.ignore_hidden().unwrap_or(true))
|
||||
.ignore(options.ignore_dot().unwrap_or(true))
|
||||
.git_global(options.ignore_global().unwrap_or(true))
|
||||
.git_ignore(options.ignore_vcs().unwrap_or(true))
|
||||
|
||||
Reference in New Issue
Block a user