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::{ use std::{
fmt::{Debug, Display}, fmt::{Debug, Display},
num::NonZero, num::NonZeroUsize,
path::Path, path::Path,
time::Duration, 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")?; .wrap_err("failed to get targets")?;
let concurrent = std::thread::available_parallelism() let concurrent = std::thread::available_parallelism()
.unwrap_or(NonZero::new(2).unwrap()) .unwrap_or(NonZeroUsize::new(2).unwrap())
.get() .get()
/ 2; / 2;