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::{
|
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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue