Skip to content

Commit 9105cfc

Browse files
rwgkcopybara-github
authored andcommitted
proto_caster_impl.h cast_op_type whitespace changes for readability.
Functional no-op. PiperOrigin-RevId: 570106155
1 parent ff24053 commit 9105cfc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

pybind11_protobuf/proto_caster_impl.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,15 @@ struct proto_caster : public proto_caster_load_impl<ProtoType>,
291291
std::is_same<std::remove_reference_t<T_>, const ProtoType *>::value,
292292
const ProtoType *,
293293
std::conditional_t<
294-
std::is_same<
295-
std::remove_reference_t<T_>, ProtoType *>::value, ProtoType *,
294+
std::is_same<std::remove_reference_t<T_>, ProtoType *>::value,
295+
ProtoType *,
296296
std::conditional_t<
297-
std::is_same<T_, const ProtoType &>::value, const ProtoType &,
298-
std::conditional_t<std::is_same<T_, ProtoType &>::value, ProtoType &,
299-
/*default is T&&*/ T_>>>>;
297+
std::is_same<T_, const ProtoType &>::value,
298+
const ProtoType &,
299+
std::conditional_t<
300+
std::is_same<T_, ProtoType &>::value,
301+
ProtoType &,
302+
T_>>>>; // Fall back to `T_` (assumed `T&&`).
300303
// clang-format on
301304
};
302305

0 commit comments

Comments
 (0)