Skip to content

Commit 3367a6f

Browse files
committed
Merge remote-tracking branch 'ds-cbo/bump-bitflags'
2 parents 56e415e + ce7e08d commit 3367a6f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ members = [
33
"system-configuration-sys",
44
"system-configuration",
55
]
6+
resolver = "2"

system-configuration-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ edition = "2021"
1111

1212
[dependencies]
1313
core-foundation-sys = "0.8"
14-
libc = "0.2.49"
14+
libc = "0.2.149"

system-configuration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ edition = "2021"
1313
[dependencies]
1414
core-foundation = "0.9"
1515
system-configuration-sys = { path = "../system-configuration-sys", version = "0.5" }
16-
bitflags = "1"
16+
bitflags = "2"

system-configuration/src/network_reachability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ impl<T: Fn(ReachabilityFlags) + Sync + Send> NetworkReachabilityCallbackContext<
297297
context: *mut c_void,
298298
) {
299299
let context: &mut Self = unsafe { &mut (*(context as *mut _)) };
300-
(context.callback)(unsafe { ReachabilityFlags::from_bits_unchecked(flags) });
300+
(context.callback)(ReachabilityFlags::from_bits_retain(flags));
301301
}
302302

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

0 commit comments

Comments
 (0)