@@ -28,11 +28,11 @@ extension Stream {
28
28
public init ( rawValue: String ) {
29
29
self . rawValue = rawValue
30
30
}
31
-
32
- public var hashValue : Int {
33
- return rawValue . hashValue
31
+
32
+ public func hash ( into hasher : inout Hasher ) {
33
+ hasher . combine ( rawValue )
34
34
}
35
-
35
+
36
36
public static func == ( lhs: Stream . PropertyKey , rhs: Stream . PropertyKey ) -> Bool {
37
37
return lhs. rawValue == rhs. rawValue
38
38
}
@@ -303,8 +303,8 @@ public struct StreamSocketSecurityLevel : RawRepresentable, Equatable, Hashable
303
303
public init ( rawValue: String ) {
304
304
self . rawValue = rawValue
305
305
}
306
- public var hashValue : Int {
307
- return rawValue . hashValue
306
+ public func hash ( into hasher : inout Hasher ) {
307
+ hasher . combine ( rawValue )
308
308
}
309
309
public static func == ( lhs: StreamSocketSecurityLevel , rhs: StreamSocketSecurityLevel ) -> Bool {
310
310
return lhs. rawValue == rhs. rawValue
@@ -325,8 +325,8 @@ public struct StreamSOCKSProxyConfiguration : RawRepresentable, Equatable, Hasha
325
325
public init ( rawValue: String ) {
326
326
self . rawValue = rawValue
327
327
}
328
- public var hashValue : Int {
329
- return rawValue . hashValue
328
+ public func hash ( into hasher : inout Hasher ) {
329
+ hasher . combine ( rawValue )
330
330
}
331
331
public static func == ( lhs: StreamSOCKSProxyConfiguration , rhs: StreamSOCKSProxyConfiguration ) -> Bool {
332
332
return lhs. rawValue == rhs. rawValue
@@ -347,8 +347,8 @@ public struct StreamSOCKSProxyVersion : RawRepresentable, Equatable, Hashable {
347
347
public init ( rawValue: String ) {
348
348
self . rawValue = rawValue
349
349
}
350
- public var hashValue : Int {
351
- return rawValue . hashValue
350
+ public func hash ( into hasher : inout Hasher ) {
351
+ hasher . combine ( rawValue )
352
352
}
353
353
public static func == ( lhs: StreamSOCKSProxyVersion , rhs: StreamSOCKSProxyVersion ) -> Bool {
354
354
return lhs. rawValue == rhs. rawValue
@@ -366,8 +366,8 @@ public struct StreamNetworkServiceTypeValue : RawRepresentable, Equatable, Hasha
366
366
public init ( rawValue: String ) {
367
367
self . rawValue = rawValue
368
368
}
369
- public var hashValue : Int {
370
- return rawValue . hashValue
369
+ public func hash ( into hasher : inout Hasher ) {
370
+ hasher . combine ( rawValue )
371
371
}
372
372
public static func == ( lhs: StreamNetworkServiceTypeValue , rhs: StreamNetworkServiceTypeValue ) -> Bool {
373
373
return lhs. rawValue == rhs. rawValue
0 commit comments