diff --git a/src/profiler.rs b/src/profiler.rs index 1addfd7..9a27897 100644 --- a/src/profiler.rs +++ b/src/profiler.rs @@ -1231,10 +1231,7 @@ impl Profiler<'_> { let mut prog_fds = Vec::new(); for i in 0..num_cpus::get() { let perf_fd = unsafe { - setup_perf_event( - >::into(i).unwrap(), - self.sample_freq.try_into().unwrap(), - ) + setup_perf_event(i.try_into().unwrap(), self.sample_freq.try_into().unwrap()) } .expect("setup perf event"); prog_fds.push(perf_fd);