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:
@@ -25,16 +25,16 @@ public struct ParsedAuthor: Hashable, Codable, Sendable {
|
||||
// MARK: - Hashable
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
if let name = name {
|
||||
if let name {
|
||||
hasher.combine(name)
|
||||
}
|
||||
else if let url = url {
|
||||
else if let url {
|
||||
hasher.combine(url)
|
||||
}
|
||||
else if let emailAddress = emailAddress {
|
||||
else if let emailAddress {
|
||||
hasher.combine(emailAddress)
|
||||
}
|
||||
else if let avatarURL = avatarURL {
|
||||
else if let avatarURL{
|
||||
hasher.combine(avatarURL)
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user