mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
Use custom has(into) and == functions for FeedListFolder.
This commit is contained in:
1 parent
24a6fae370
commit
37ace321e8
1 file changed
+12
@@ -23,4 +23,16 @@ final class FeedListFolder: Hashable, DisplayNameProvider {
|
||||
self.name = name
|
||||
self.feeds = feeds
|
||||
}
|
||||
|
||||
// MARK: - Hashable
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
hasher.combine(name)
|
||||
}
|
||||
|
||||
// MARK: - Equatable
|
||||
|
||||
static func ==(lhs: FeedListFolder, rhs: FeedListFolder) -> Bool {
|
||||
return lhs.name == rhs.name && lhs.feeds == rhs.feeds
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user