TabInfo: don't need to implement == if Codable/hashable

This commit is contained in:
James Magahern
2022-08-05 19:28:43 -07:00
parent e8c6111592
commit a9801d9d56

View File

@@ -14,11 +14,7 @@ struct TabInfo: Codable, Hashable
public var urlString: String?
public var faviconData: Data?
public var identifier = UUID()
public static func ==(lhs: TabInfo, rhs: TabInfo) -> Bool {
return lhs.identifier == rhs.identifier
}
enum CodingKeys: String, CodingKey {
case title
case urlString = "url"