Skip to content

Commit 926e394

Browse files
use new Hashable requirement
1 parent efafcd3 commit 926e394

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MapboxNavigationTests/Sources/Tests/NavigationViewControllerTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ extension NavigationViewControllerTests: NavigationViewControllerDelegate, Style
224224
}
225225

226226
extension CLLocationCoordinate2D: Hashable {
227-
// Hash value property multiplied by a prime constant.
228-
public var hashValue: Int {
229-
latitude.hashValue ^ longitude.hashValue &* 16_777_619
227+
public func hash(into hasher: inout Hasher) {
228+
hasher.combine(latitude)
229+
hasher.combine(longitude)
230230
}
231231

232232
static func == (lhs: CLLocationCoordinate2D, rhs: CLLocationCoordinate2D) -> Bool {

0 commit comments

Comments
 (0)