We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NetlinkMessageType
1 parent b3ef87c commit e269280Copy full SHA for e269280
Sources/Netlink/MessageType.swift
@@ -26,7 +26,7 @@ import Foundation
26
27
- SeeAlso: [Netlink Library](https://www.infradead.org/%7Etgr/libnl/doc/core.html#core_addressing)
28
*/
29
-public struct NetlinkMessageType: RawRepresentable {
+public struct NetlinkMessageType: RawRepresentable, Equatable, Hashable {
30
31
public let rawValue: UInt16
32
@@ -36,16 +36,6 @@ public struct NetlinkMessageType: RawRepresentable {
36
}
37
38
39
-// MARK: - Equatable
40
-
41
-extension NetlinkMessageType: Equatable {
42
43
- public static func == (lhs: NetlinkMessageType, rhs: NetlinkMessageType) -> Bool {
44
45
- return lhs.rawValue == rhs.rawValue
46
- }
47
-}
48
49
// MARK: - Types
50
51
public extension NetlinkMessageType {
0 commit comments