mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Use custom has(into) and == functions for FeedListFolder.
This commit is contained in:
@@ -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