This commit is contained in:
nora 2024-09-07 22:58:08 +02:00
parent 288410ee30
commit aacf0f293e

View file

@ -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;