Skip to content

Commit

Permalink
update deprecated mach macos dependency in favor of mach2
Browse files Browse the repository at this point in the history
  • Loading branch information
ad0 committed Oct 4, 2023
1 parent 5d4e646 commit 03331cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ libc = "0.2"

[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
libc = "^0.2"
mach = "^0.3"
mach2 = "^0.4.1"
core-foundation = "~0.9"
core-foundation-sys = "~0.8"
io-kit-sys = "0.4.0"
2 changes: 1 addition & 1 deletion src/macos/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use io_kit_sys::{
IOMasterPort, IOObjectRelease, IORegistryEntryCreateCFProperty, IOServiceGetMatchingService,
IOServiceMatching, CFSTR,
};
use mach::*;
use mach2::*;
use std::{convert::TryFrom, ffi::CString, io::Error, io::ErrorKind};

struct AppleSMBiosService {
Expand Down

0 comments on commit 03331cc

Please sign in to comment.