Fix more warnings

This commit is contained in:
Ali
2021-08-05 12:37:57 +02:00
parent 6b3103bafc
commit 0a9be38425
83 changed files with 693 additions and 930 deletions

View File

@@ -240,24 +240,6 @@ private func preparedSettingsSearchContainerTransition(theme: PresentationTheme,
private enum SettingsSearchRecentEntryStableId: Hashable {
case recent(SettingsSearchableItemId)
static func ==(lhs: SettingsSearchRecentEntryStableId, rhs: SettingsSearchRecentEntryStableId) -> Bool {
switch lhs {
case let .recent(id):
if case .recent(id) = rhs {
return true
} else {
return false
}
}
}
var hashValue: Int {
switch self {
case let .recent(id):
return id.hashValue
}
}
}
private enum SettingsSearchRecentEntry: Comparable, Identifiable {