Skip to content

Commit df14cd3

Browse files
author
Wendy Liga
committed
migrate deprecated hashValue into func hash
1 parent e792b34 commit df14cd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BuildTimeAnalyzer/RawMeasure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func ==(lhs: RawMeasure, rhs: RawMeasure) -> Bool {
2828
// MARK: Hashable
2929

3030
extension RawMeasure: Hashable {
31-
var hashValue: Int {
32-
return time.hashValue ^ text.hashValue
31+
func hash(into hasher: inout Hasher) {
32+
hasher.combine(time.hashValue ^ text.hashValue)
3333
}
3434
}

0 commit comments

Comments
 (0)