Update a comment in oneofs

PiperOrigin-RevId: 579168059
pull/14628/head
Adrian Sadłocha 1 year ago committed by Copybara-Service
parent e682ab6bc3
commit 4721f6a5e9
  1. 3
      src/google/protobuf/compiler/rust/oneof.cc

@ -246,8 +246,7 @@ void GenerateOneofAccessors(Context<OneofDescriptor> oneof) {
if (rs_type.empty()) {
continue;
}
// TODO: Uncomment this to allow mut once
// _mut() on singular fields with presence is implemented.
// TODO: Allow mut.
/*oneof.Emit({
{"case", ToCamelCase(field->name())},
{"rs_getter", field->name() + "_mut"},

Loading…
Cancel
Save