mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[HashTreeCollections] Modernize declaration syntax of generic functions; adopt _specialize(_:for:)
This commit is contained in:
18 files changed
+108
-97
No files matched your search
@@ -17,7 +17,7 @@ internal struct _Hash {
|
||||
internal var value: UInt
|
||||
|
||||
@inlinable
|
||||
internal init<Key: Hashable>(_ key: Key) {
|
||||
internal init(_ key: some Hashable) {
|
||||
let hashValue = key._rawHashValue(seed: 0)
|
||||
self.value = UInt(bitPattern: hashValue)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user