Skip to content

Commit

Permalink
Add missed formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Mar 6, 2024
1 parent f569f94 commit a31f951
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Firestore/core/src/immutable/keys_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ auto KeysView(const Range& range) -> KeysRange<decltype(std::begin(range))> {
}

template <typename Range, typename K>
auto KeysViewFrom(const Range& range, const K& key)
-> KeysRange<decltype(range.lower_bound(key))> {
auto KeysViewFrom(const Range& range,
const K& key) -> KeysRange<decltype(range.lower_bound(key))> {
auto keys_begin = util::make_iterator_first(range.lower_bound(key));
auto keys_end = util::make_iterator_first(std::end(range));
return util::make_range(keys_begin, keys_end);
Expand Down
8 changes: 4 additions & 4 deletions Firestore/core/src/util/hashing.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ auto RankedInvokeHash(const Range& range, HashChoice<3>)
* value can itself be hashed.
*/
template <typename K>
auto RankedInvokeHash(const absl::optional<K>& option, HashChoice<4>)
-> decltype(InvokeHash(*option)) {
auto RankedInvokeHash(const absl::optional<K>& option,
HashChoice<4>) -> decltype(InvokeHash(*option)) {
return option ? InvokeHash(*option) : -1171;
}

Expand All @@ -202,8 +202,8 @@ size_t RankedInvokeHash(K value, HashChoice<5>) {
}

template <typename K>
auto RankedInvokeHash(const std::unique_ptr<K>& ptr, HashChoice<6>)
-> decltype(InvokeHash(*ptr)) {
auto RankedInvokeHash(const std::unique_ptr<K>& ptr,
HashChoice<6>) -> decltype(InvokeHash(*ptr)) {
return ptr ? InvokeHash(*ptr) : 23631;
}

Expand Down

0 comments on commit a31f951

Please sign in to comment.