mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Override hash since it doesn’t need to include everything in this case.
This commit is contained in:
1 parent
f09637976a
commit
31eff7251b
1 file changed
+6
-1
@@ -40,6 +40,11 @@ public struct SyncStatus: Hashable, Equatable {
|
||||
}
|
||||
|
||||
public func databaseDictionary() -> DatabaseDictionary {
|
||||
return [DatabaseKey.articleID: articleID, DatabaseKey.key: key.rawValue, DatabaseKey.flag: flag, DatabaseKey.selected: selected]
|
||||
[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