Skip to content

Commit 08a62bd

Browse files
committed
Derive Debug, Copy, Eq, Hash etc on ReachabilityFlag
The upgrade from bitflags 1 -> 2 removed them In total we lose the Ord/PartialOrd implementations. But those did not make any sense for this type anyway, so that's good. But breaking.
1 parent fe56d19 commit 08a62bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

system-configuration/src/network_reachability.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ bitflags::bitflags! {
8585
/// Rustier interface for [`SCNetworkReachabilityFlags`].
8686
///
8787
/// [`SCNetworkReachability`]: https://developer.apple.com/documentation/systemconfiguration/scnetworkreachabilityflags
88+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
8889
pub struct ReachabilityFlags: u32 {
8990
/// The specified node name or address can be reached via a transient connection, such as
9091
/// PPP.

0 commit comments

Comments
 (0)