From 4b78e0f15264b0d9a60af90e9eb1f5b73e5f6386 Mon Sep 17 00:00:00 2001 From: Hong Shin Date: Wed, 19 Jul 2023 13:56:56 -0700 Subject: [PATCH] Move AccessorGenerator destructor to class declaration PiperOrigin-RevId: 549417696 --- src/google/protobuf/compiler/rust/accessors/accessors.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/google/protobuf/compiler/rust/accessors/accessors.h b/src/google/protobuf/compiler/rust/accessors/accessors.h index 244e5fc6f2..baa80c0a9f 100644 --- a/src/google/protobuf/compiler/rust/accessors/accessors.h +++ b/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 field); }; -inline AccessorGenerator::~AccessorGenerator() = default; - } // namespace rust } // namespace compiler } // namespace protobuf