commit | ec3187d104452f1361b66a9d97a43e2ed48d540c | [log] [tgz] |
---|---|---|
author | Jonathon Reinhart <jrreinhart@google.com> | Wed Aug 30 20:09:08 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 30 20:09:08 2023 +0000 |
tree | dc3705f891ca05c022f3a5d9f35ed51f16551c63 | |
parent | 86a14c7f77169bc30c02c0f8ec8e9852f448b8df [diff] |
pw_protobuf: Simplify unnecessary Tuple return type MessageProperty.struct_member() always returned self.name() in the second element of the returned Tuple. Instead, just return the type name instead of a tuple and update callers to use MessageProperty.name() instead. Rename the method to struct_member_type() for clarity. Test: Ensure generated file is unmodified before/after this change: out/protocol_buffer/gen/pw_i2c/protos.proto_library/pwpb/pw_i2c/i2c.pwpb.h Change-Id: I3bf943155a9a2a5021d713a1d0cb5e31177147df Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/168910 Reviewed-by: Austin Foxley <afoxley@google.com> Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Jonathon Reinhart <jrreinhart@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.