fix(build): Correctly convert Empty to () (#734)

This commit is contained in:
Tom Dyas
2021-10-22 08:44:27 -04:00
committed by GitHub
parent 4947b076f5
commit ff6a690cec
5 changed files with 53 additions and 31 deletions
+13 -4
View File
@@ -1,9 +1,18 @@
pub mod google {
pub mod protobuf {
tonic::include_proto!("google.protobuf");
pub mod gen {
pub mod google {
pub mod protobuf {
tonic::include_proto!("google.protobuf");
}
}
pub mod test {
tonic::include_proto!("test");
}
}
pub fn grok() {
let _empty = crate::google::protobuf::Empty {};
let _any = crate::gen::google::protobuf::Any {
type_url: "foo".to_owned(),
value: Vec::new(),
};
}