mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-12-20 18:27:11 +00:00
clippy
This commit is contained in:
parent
df70a28ca3
commit
13cd308358
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ pub(crate) fn create_workers(
|
|||
config: Config,
|
||||
) -> (Manager, JobServer) {
|
||||
let parallelism =
|
||||
std::thread::available_parallelism().unwrap_or(NonZeroUsize::try_from(1).expect("nonzero"));
|
||||
std::thread::available_parallelism().unwrap_or_else(|_| NonZeroUsize::try_from(1).expect("nonzero"));
|
||||
|
||||
let shared = WorkerConfig::new_managed(Storage::new(ActixTimer), move |queue_handle| {
|
||||
JobState::new(
|
||||
|
|
Loading…
Reference in a new issue