fix(build): Correctly convert Empty to () (#734)
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user