Skip to content

Commit

Permalink
Derive Debug, Copy, Eq, Hash etc on ReachabilityFlag
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
faern committed Jan 31, 2024
1 parent fe56d19 commit 08a62bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system-configuration/src/network_reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ bitflags::bitflags! {
/// Rustier interface for [`SCNetworkReachabilityFlags`].
///
/// [`SCNetworkReachability`]: https://developer.apple.com/documentation/systemconfiguration/scnetworkreachabilityflags
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct ReachabilityFlags: u32 {
/// The specified node name or address can be reached via a transient connection, such as
/// PPP.
Expand Down

0 comments on commit 08a62bd

Please sign in to comment.