mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Provide hash(into:) functions where the default implementation might be doing too much work.
This commit is contained in:
@@ -44,4 +44,9 @@ public struct SyncStatus: Hashable, Equatable, Sendable {
|
||||
public func databaseDictionary() -> DatabaseDictionary {
|
||||
return [DatabaseKey.articleID: articleID, DatabaseKey.key: key.rawValue, DatabaseKey.flag: flag, DatabaseKey.selected: selected]
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(articleID)
|
||||
hasher.combine(key)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user