We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27107c commit 1b6ef52Copy full SHA for 1b6ef52
libafl_bolts/src/core_affinity.rs
@@ -872,8 +872,7 @@ mod solaris {
872
#[allow(clippy::unnecessary_wraps)]
873
pub fn get_core_ids() -> Result<Vec<CoreId>, Error> {
874
Ok((0..(usize::from(available_parallelism()?)))
875
- .into_iter()
876
- .map(|n| CoreId(n))
+ .map(CoreId)
877
.collect::<Vec<_>>())
878
}
879
@@ -882,7 +881,7 @@ mod solaris {
882
881
libc::processor_bind(
883
libc::P_PID,
884
libc::PS_MYID,
885
- core_id.0 as i32,
+ core_id.0.try_into().unwrap(),
886
std::ptr::null_mut(),
887
)
888
};
0 commit comments