Files
tonic/tests/ambiguous_methods/src/main.rs
T
Yonathan RandolphandGitHub 5d56daa721 fix(build): Remove ambiguity in service method call (#327)
When calling methods on Arc<MyService> where the method is also defined on Arc (e.g. drop and clone), calling inner.#method_ident(request) will actually attempt to call the Arc method instead of the method on the service, resulting in a compile error. This change removes the ambiguity by dereferencing the inner Arc.
2020-04-09 13:40:26 -04:00

9 lines
124 B
Rust

#[macro_use]
extern crate tonic;
tonic::include_proto!("ambiguous_methods");
fn main() {
println!("Hello, world!");
}