mastodon-app-ufficiale-ipho.../Mastodon/Extension/MastodonSDK/Mastodon+Entity+Account.swift

19 lines
389 B
Swift
Raw Normal View History

//
// Mastodon+Entity+Account.swift
// Mastodon
//
// Created by xiaojian sun on 2021/4/2.
//
import MastodonSDK
extension Mastodon.Entity.Account: Hashable {
public func hash(into hasher: inout Hasher) {
hasher.combine(id)
}
public static func == (lhs: Mastodon.Entity.Account, rhs: Mastodon.Entity.Account) -> Bool {
return lhs.id == rhs.id
}
}