mirror of
https://github.com/Noratrieb/does-it-build.git
synced 2026-01-14 18:35:01 +01:00
stable
This commit is contained in:
parent
288410ee30
commit
aacf0f293e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use std::{
|
||||
fmt::{Debug, Display},
|
||||
num::NonZero,
|
||||
num::NonZeroUsize,
|
||||
path::Path,
|
||||
time::Duration,
|
||||
};
|
||||
|
|
@ -146,7 +146,7 @@ pub async fn build_every_target_for_toolchain(db: &Db, nightly: &str) -> Result<
|
|||
.wrap_err("failed to get targets")?;
|
||||
|
||||
let concurrent = std::thread::available_parallelism()
|
||||
.unwrap_or(NonZero::new(2).unwrap())
|
||||
.unwrap_or(NonZeroUsize::new(2).unwrap())
|
||||
.get()
|
||||
/ 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue