From e269280aa94e17b6d3d69915c9a1de4451fda414 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Wed, 4 May 2022 18:07:47 -0700 Subject: [PATCH] Updated `NetlinkMessageType` for Swift 5.6 --- Sources/Netlink/MessageType.swift | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Sources/Netlink/MessageType.swift b/Sources/Netlink/MessageType.swift index 7accaee..a4b23c1 100644 --- a/Sources/Netlink/MessageType.swift +++ b/Sources/Netlink/MessageType.swift @@ -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 @@ -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 {