Skip to content

Commit d0428bc

Browse files
committed
Replace deprecated hashValue with hash(into:)
1 parent c7506a2 commit d0428bc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

KeyCommandKit/KeyBinding.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,10 @@ extension KeyBinding: Hashable
224224
return lhs.hashValue == rhs.hashValue
225225
}
226226

227-
public var hashValue: Int
227+
public func hash(into hasher: inout Hasher)
228228
{
229-
return "\(key.hashValue)\(input.hashValue)\(modifiers.rawValue)".hashValue
229+
hasher.combine(key)
230+
hasher.combine(input)
231+
hasher.combine(modifiers.rawValue)
230232
}
231233
}

0 commit comments

Comments
 (0)