chore(build): Fix wrong output type used in replace (#50)

This commit is contained in:
Lucio Franco
2019-10-05 14:18:13 -04:00
committed by GitHub
parent 4e1fcece15
commit 01e72d9a95
+1 -1
View File
@@ -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()