Skip to content

Commit

Permalink
Updated NetlinkMessageType for Swift 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed May 5, 2022
1 parent b3ef87c commit e269280
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Sources/Netlink/MessageType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import Foundation

- SeeAlso: [Netlink Library](https://www.infradead.org/%7Etgr/libnl/doc/core.html#core_addressing)
*/
public struct NetlinkMessageType: RawRepresentable {
public struct NetlinkMessageType: RawRepresentable, Equatable, Hashable {

public let rawValue: UInt16

Expand All @@ -36,16 +36,6 @@ public struct NetlinkMessageType: RawRepresentable {
}
}

// MARK: - Equatable

extension NetlinkMessageType: Equatable {

public static func == (lhs: NetlinkMessageType, rhs: NetlinkMessageType) -> Bool {

return lhs.rawValue == rhs.rawValue
}
}

// MARK: - Types

public extension NetlinkMessageType {
Expand Down

0 comments on commit e269280

Please sign in to comment.