mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
Fix equality checks in client models. (#113)
This commit is contained in:
@@ -83,7 +83,7 @@ struct MapItem: Equatable {
|
|||||||
&& lhs.placemark.subLocality == rhs.placemark.subLocality
|
&& lhs.placemark.subLocality == rhs.placemark.subLocality
|
||||||
&& lhs.placemark.administrativeArea == rhs.placemark.administrativeArea
|
&& lhs.placemark.administrativeArea == rhs.placemark.administrativeArea
|
||||||
&& lhs.placemark.subAdministrativeArea
|
&& lhs.placemark.subAdministrativeArea
|
||||||
== lhs.placemark.subAdministrativeArea
|
== rhs.placemark.subAdministrativeArea
|
||||||
&& lhs.placemark.postalCode == rhs.placemark.postalCode
|
&& lhs.placemark.postalCode == rhs.placemark.postalCode
|
||||||
&& lhs.placemark.isoCountryCode == rhs.placemark.isoCountryCode
|
&& lhs.placemark.isoCountryCode == rhs.placemark.isoCountryCode
|
||||||
&& lhs.placemark.country == rhs.placemark.country
|
&& lhs.placemark.country == rhs.placemark.country
|
||||||
@@ -179,24 +179,24 @@ struct Placemark: Equatable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static func == (lhs: Self, rhs: Self) -> Bool {
|
static func == (lhs: Self, rhs: Self) -> Bool {
|
||||||
lhs.administrativeArea == lhs.administrativeArea
|
lhs.administrativeArea == rhs.administrativeArea
|
||||||
&& lhs.areasOfInterest == lhs.areasOfInterest
|
&& lhs.areasOfInterest == rhs.areasOfInterest
|
||||||
&& lhs.coordinate.latitude == rhs.coordinate.latitude
|
&& lhs.coordinate.latitude == rhs.coordinate.latitude
|
||||||
&& lhs.coordinate.longitude == rhs.coordinate.longitude
|
&& lhs.coordinate.longitude == rhs.coordinate.longitude
|
||||||
&& lhs.country == lhs.country
|
&& lhs.country == rhs.country
|
||||||
&& lhs.countryCode == rhs.countryCode
|
&& lhs.countryCode == rhs.countryCode
|
||||||
&& lhs.inlandWater == lhs.inlandWater
|
&& lhs.inlandWater == rhs.inlandWater
|
||||||
&& lhs.isoCountryCode == lhs.isoCountryCode
|
&& lhs.isoCountryCode == rhs.isoCountryCode
|
||||||
&& lhs.locality == lhs.locality
|
&& lhs.locality == rhs.locality
|
||||||
&& lhs.name == rhs.name
|
&& lhs.name == rhs.name
|
||||||
&& lhs.ocean == lhs.ocean
|
&& lhs.ocean == rhs.ocean
|
||||||
&& lhs.postalCode == lhs.postalCode
|
&& lhs.postalCode == rhs.postalCode
|
||||||
&& lhs.region == rhs.region
|
&& lhs.region == rhs.region
|
||||||
&& lhs.subAdministrativeArea == lhs.subAdministrativeArea
|
&& lhs.subAdministrativeArea == rhs.subAdministrativeArea
|
||||||
&& lhs.subLocality == lhs.subLocality
|
&& lhs.subLocality == rhs.subLocality
|
||||||
&& lhs.subThoroughfare == lhs.subThoroughfare
|
&& lhs.subThoroughfare == rhs.subThoroughfare
|
||||||
&& lhs.subtitle == rhs.subtitle
|
&& lhs.subtitle == rhs.subtitle
|
||||||
&& lhs.thoroughfare == lhs.thoroughfare
|
&& lhs.thoroughfare == rhs.thoroughfare
|
||||||
&& lhs.title == rhs.title
|
&& lhs.title == rhs.title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user