Przeglądaj źródła

Updated Request to use new hash(into:) API for hashing (#2696)

Jeff Kelley 6 lat temu
rodzic
commit
9fe966a11e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      Source/Request.swift

+ 2 - 2
Source/Request.swift

@@ -546,8 +546,8 @@ extension Request: Equatable {
 }
 
 extension Request: Hashable {
-    public var hashValue: Int {
-        return id.hashValue
+    public func hash(into hasher: inout Hasher) {
+        hasher.combine(id)
     }
 }