diff --git a/crunchy-cli-core/src/utils/download.rs b/crunchy-cli-core/src/utils/download.rs index 2817c48..cdf0753 100644 --- a/crunchy-cli-core/src/utils/download.rs +++ b/crunchy-cli-core/src/utils/download.rs @@ -576,11 +576,7 @@ impl Downloader { }; // If `threads` is specified, use that many CPU cores(?). - let cpus = if let Some(threads) = self.threads { - threads - } else { - num_cpus::get() - }; + let cpus = self.threads.unwrap_or(num_cpus::get()); let mut segs: Vec> = Vec::with_capacity(cpus); for _ in 0..cpus { segs.push(vec![])