It's not currently possible to document the enum variants, which means

projects that #[deny(missing_docs)] wouldn't compile if using tarpc
services.
This commit is contained in:
Tim Kuehn
2021-04-20 09:01:39 -07:00
parent 56f09bf61f
commit 0b315c29bf

View File

@@ -578,6 +578,7 @@ impl<'a> ServiceGenerator<'a> {
quote! {
/// The request sent over the wire from the client to the server.
#[allow(missing_docs)]
#[derive(Debug)]
#derive_serialize
#vis enum #request_ident {
@@ -598,6 +599,7 @@ impl<'a> ServiceGenerator<'a> {
quote! {
/// The response sent over the wire from the server to the client.
#[allow(missing_docs)]
#[derive(Debug)]
#derive_serialize
#vis enum #response_ident {
@@ -618,6 +620,7 @@ impl<'a> ServiceGenerator<'a> {
quote! {
/// A future resolving to a server response.
#[allow(missing_docs)]
#vis enum #response_fut_ident<S: #service_ident> {
#( #camel_case_idents(<S as #service_ident>::#future_types) ),*
}