Skip to content

Commit

Permalink
Add FieldValue Equatable conformance (#46)
Browse files Browse the repository at this point in the history
The compiler is able to implement the conformance itself given the existing C++ `operator==` for the underlying `FieldValue` type. We just need to declare that we want it.
  • Loading branch information
darinf authored Mar 12, 2024
1 parent 517c18c commit 4880ad1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/FirebaseFirestore/FieldValue+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ extension FieldValue {
ServerTimestamp()
}
}

extension FieldValue: Equatable {}

0 comments on commit 4880ad1

Please sign in to comment.