Skip to content

Commit

Permalink
MSRV doesn't support cfg over conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaky committed Apr 21, 2023
1 parent ab17d03 commit 0c42a28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ fn get_num_cpus() -> usize {
use std::ptr;

#[cfg(target_os = "freebsd")]
if let Some(cpus) = get_cpuset_cpus() {
return cpus;
{
if let Some(cpus) = get_cpuset_cpus() {
return cpus;
}
}

let mut cpus: libc::c_uint = 0;
Expand Down

0 comments on commit 0c42a28

Please sign in to comment.