diff --git a/Sources/Puree/LogEntry.swift b/Sources/Puree/LogEntry.swift index dbb7a68..9c183d1 100644 --- a/Sources/Puree/LogEntry.swift +++ b/Sources/Puree/LogEntry.swift @@ -6,8 +6,8 @@ public struct LogEntry: Codable, Hashable { public var date: Date public var userData: Data? - public var hashValue: Int { - return identifier.hashValue + public func hash(into hasher: inout Hasher) { + hasher.combine(identifier) } public static func == (lhs: LogEntry, rhs: LogEntry) -> Bool { diff --git a/Sources/Puree/Output/BufferedOutput.swift b/Sources/Puree/Output/BufferedOutput.swift index 742c8fd..044aba4 100644 --- a/Sources/Puree/Output/BufferedOutput.swift +++ b/Sources/Puree/Output/BufferedOutput.swift @@ -26,8 +26,8 @@ open class BufferedOutput: Output { return lhs.logs == rhs.logs } - public var hashValue: Int { - return logs.hashValue + public func hash(into hasher: inout Hasher) { + hasher.combine(logs) } } public struct Configuration {