diff --git a/third-party/thrift/src/thrift/compiler/codemod/structure_annotations.cc b/third-party/thrift/src/thrift/compiler/codemod/structure_annotations.cc index 4acdec5658819e..70b7c7a6069052 100644 --- a/third-party/thrift/src/thrift/compiler/codemod/structure_annotations.cc +++ b/third-party/thrift/src/thrift/compiler/codemod/structure_annotations.cc @@ -478,7 +478,7 @@ class structure_annotations { return fmt::format("\"{}\"", str); }) | ranges::views::join(',') | ranges::to; - to_add.insert(fmt::format("@rust.Derive{{derive = [{}]}}", derives)); + to_add.insert(fmt::format("@rust.Derive{{derives = [{}]}}", derives)); fm_.add_include("thrift/annotation/rust.thrift"); } diff --git a/third-party/thrift/src/thrift/compiler/codemod/structure_annotations_test.py b/third-party/thrift/src/thrift/compiler/codemod/structure_annotations_test.py index 8d4a372cfbfb85..b7cbdfcd07d12b 100644 --- a/third-party/thrift/src/thrift/compiler/codemod/structure_annotations_test.py +++ b/third-party/thrift/src/thrift/compiler/codemod/structure_annotations_test.py @@ -458,7 +458,7 @@ def test_rust(self): @rust.Arc @rust.Copy - @rust.Derive{derive = ["Foo","Bar"]} + @rust.Derive{derives = ["Foo","Bar"]} @rust.Exhaustive @rust.Mod{name = "foo"} @rust.Ord