Skip to content

Commit

Permalink
chore(build): Fix wrong output type used in replace (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Oct 5, 2019
1 parent 4e1fcec commit 01e72d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ fn replace_wellknown(proto_path: &str, method: &Method) -> (TokenStream, TokenSt
};

let response = if method.output_proto_type.starts_with(".google.protobuf") {
method.input_type.parse::<TokenStream>().unwrap()
method.output_type.parse::<TokenStream>().unwrap()
} else {
syn::parse_str::<syn::Path>(&format!("{}::{}", proto_path, method.output_type))
.unwrap()
Expand Down

0 comments on commit 01e72d9

Please sign in to comment.