Move AccessorGenerator destructor to class declaration

PiperOrigin-RevId: 549417696
pull/12753/head
Hong Shin 1 year ago committed by Copybara-Service
parent c9e2ca28c0
commit 4b78e0f152
  1. 5
      src/google/protobuf/compiler/rust/accessors/accessors.h

@ -45,14 +45,13 @@ namespace rust {
class AccessorGenerator {
public:
AccessorGenerator() = default;
virtual ~AccessorGenerator() = default;
AccessorGenerator(const AccessorGenerator &) = delete;
AccessorGenerator(AccessorGenerator &&) = delete;
AccessorGenerator &operator=(const AccessorGenerator &) = delete;
AccessorGenerator &operator=(AccessorGenerator &&) = delete;
virtual ~AccessorGenerator();
// Constructs a generator for the given field.
//
// Returns `nullptr` if there is no known generator for this field.
@ -93,8 +92,6 @@ class AccessorGenerator {
Context<FieldDescriptor> field);
};
inline AccessorGenerator::~AccessorGenerator() = default;
} // namespace rust
} // namespace compiler
} // namespace protobuf

Loading…
Cancel
Save