Skip to content

Commit

Permalink
Merge pull request #104 from kristopherbullinger/fix-nonterminating-r…
Browse files Browse the repository at this point in the history
…ecursion

stack overflow fix: use fully-qualified T method syntax
  • Loading branch information
tclem authored Sep 23, 2024
2 parents e82249f + 68a82ea commit 247b54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/twirp-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl prost_build::ServiceGenerator for ServiceGenerator {
m.name, m.input_type, m.output_type,
)
.unwrap();
writeln!(buf, " (*self).{}(ctx, req).await", m.name).unwrap();
writeln!(buf, " T::{}(&*self, ctx, req).await", m.name).unwrap();
writeln!(buf, " }}").unwrap();
}
writeln!(buf, "}}").unwrap();
Expand Down

0 comments on commit 247b54d

Please sign in to comment.