Skip to content

Commit

Permalink
upgrade to 0.22.6
Browse files Browse the repository at this point in the history
Summary: Upgrade `pyo3` to [`0.22.6`](https://fburl.com/g3zxt353)

Reviewed By: zertosh

Differential Revision: D68466072

fbshipit-source-id: 9e52e76164584477fc9a21daefb8a49feaf664c1
  • Loading branch information
diliop authored and facebook-github-bot committed Jan 26, 2025
1 parent 3dc8a60 commit 3d72a95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/buck2_util/src/os/macos/host_cpu_load_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ pub fn host_cpu_load_info() -> buck2_error::Result<HostCpuLoadInfo> {
};

let res = libc::host_statistics64(
// TODO libc::mach_host_self is deprecated and is not yet part of the
// suggested `mach2` crate (https://github.com/JohnTitor/mach2/issues/34)
// Someone needs to add it upstream or implement a different route!
#[allow(deprecated)]
libc::mach_host_self(),
libc::HOST_CPU_LOAD_INFO,
&mut host_info as *mut _ as *mut libc::integer_t,
Expand Down

0 comments on commit 3d72a95

Please sign in to comment.