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.
1 parent 562b6ec commit f07b8e1Copy full SHA for f07b8e1
Darwin/Foundation-swiftoverlay/URL.swift
@@ -622,10 +622,14 @@ public struct URL : ReferenceConvertible, Equatable {
622
_url = URL._converted(from: NSURL(fileURLWithFileSystemRepresentation: path, isDirectory: isDirectory, relativeTo: baseURL))
623
}
624
625
- public var hashValue: Int {
+ public var hashValue: Int { // FIXME(hashValue): This should be removed once URL implements Hashable.
626
return _url.hash
627
628
-
+
629
+ public func hash(into hasher: inout Hasher) {
630
+ hasher.combine(_url)
631
+ }
632
633
// MARK: -
634
635
/// Returns the data representation of the URL's relativeString.
0 commit comments