Skip to content

Commit

Permalink
Merge remote-tracking branch 'ds-cbo/bump-bitflags'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 21, 2023
2 parents 56e415e + ce7e08d commit 3367a6f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ members = [
"system-configuration-sys",
"system-configuration",
]
resolver = "2"
2 changes: 1 addition & 1 deletion system-configuration-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ edition = "2021"

[dependencies]
core-foundation-sys = "0.8"
libc = "0.2.49"
libc = "0.2.149"
2 changes: 1 addition & 1 deletion system-configuration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ edition = "2021"
[dependencies]
core-foundation = "0.9"
system-configuration-sys = { path = "../system-configuration-sys", version = "0.5" }
bitflags = "1"
bitflags = "2"
2 changes: 1 addition & 1 deletion system-configuration/src/network_reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl<T: Fn(ReachabilityFlags) + Sync + Send> NetworkReachabilityCallbackContext<
context: *mut c_void,
) {
let context: &mut Self = unsafe { &mut (*(context as *mut _)) };
(context.callback)(unsafe { ReachabilityFlags::from_bits_unchecked(flags) });
(context.callback)(ReachabilityFlags::from_bits_retain(flags));
}

extern "C" fn copy_ctx_description(_ctx: *const c_void) -> CFStringRef {
Expand Down

0 comments on commit 3367a6f

Please sign in to comment.