We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0e0d66 + 4b96229 commit d2a0ce1Copy full SHA for d2a0ce1
compiler/src/codegen.rs
@@ -505,7 +505,7 @@ impl<'a> ServiceGen<'a> {
505
w.impl_self_block(&self.client_name(), |w| {
506
w.pub_fn("new(client: ::ttrpc::Client) -> Self", |w| {
507
w.expr_block(&self.client_name(), |w| {
508
- w.field_entry("client", "client");
+ w.write_line("client,");
509
});
510
511
@@ -527,7 +527,7 @@ impl<'a> ServiceGen<'a> {
527
528
w.pub_fn("new(client: ::ttrpc::r#async::Client) -> Self", |w| {
529
530
531
532
533
0 commit comments