Skip to content

Commit d78bc90

Browse files
hchokshimeta-codesync[bot]
authored andcommitted
Replace 'service:program_name' in Rust generator
Summary: Replace mstch property `service:program_name` with Whisker property for `t_program::name`. Reviewed By: dtolnay Differential Revision: D90034985 fbshipit-source-id: 78af2d5f89c98c54c6a3dfe485f4da7932630be2
1 parent 0d0bb81 commit d78bc90

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

third-party/thrift/src/thrift/compiler/generate/t_mstch_rust_generator.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,8 +1246,7 @@ class rust_mstch_service : public mstch_service {
12461246
{"service:snake", &rust_mstch_service::rust_snake},
12471247
{"service:requestContext?", &rust_mstch_service::rust_request_context},
12481248
{"service:extendedClients",
1249-
&rust_mstch_service::rust_extended_clients},
1250-
{"service:program_name", &rust_mstch_service::program_name}});
1249+
&rust_mstch_service::rust_extended_clients}});
12511250
}
12521251
mstch::node rust_functions();
12531252
mstch::node rust_client_package() {
@@ -1294,7 +1293,6 @@ class rust_mstch_service : public mstch_service {
12941293
}
12951294
return extended_services;
12961295
}
1297-
mstch::node program_name() { return service_->program()->name(); }
12981296

12991297
mstch::node rust_all_exceptions();
13001298

third-party/thrift/src/thrift/compiler/generate/templates/rust/lib/method_metadata.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
limitations under the License.
1616
1717
}}
18-
// From {{service:program_name}}.{{service:name}}:
18+
// From {{service:program.name}}.{{service:name}}:
1919
{{^service:interaction?}}
2020
{{#service:rustFunctions}}{{^function:starts_interaction?}}
2121
::fbthrift::processor::MethodMetadata{

0 commit comments

Comments
 (0)