mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-02-23 15:49:54 +01:00
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:
@@ -578,6 +578,7 @@ impl<'a> ServiceGenerator<'a> {
|
|||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
/// The request sent over the wire from the client to the server.
|
/// The request sent over the wire from the client to the server.
|
||||||
|
#[allow(missing_docs)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#derive_serialize
|
#derive_serialize
|
||||||
#vis enum #request_ident {
|
#vis enum #request_ident {
|
||||||
@@ -598,6 +599,7 @@ impl<'a> ServiceGenerator<'a> {
|
|||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
/// The response sent over the wire from the server to the client.
|
/// The response sent over the wire from the server to the client.
|
||||||
|
#[allow(missing_docs)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#derive_serialize
|
#derive_serialize
|
||||||
#vis enum #response_ident {
|
#vis enum #response_ident {
|
||||||
@@ -618,6 +620,7 @@ impl<'a> ServiceGenerator<'a> {
|
|||||||
|
|
||||||
quote! {
|
quote! {
|
||||||
/// A future resolving to a server response.
|
/// A future resolving to a server response.
|
||||||
|
#[allow(missing_docs)]
|
||||||
#vis enum #response_fut_ident<S: #service_ident> {
|
#vis enum #response_fut_ident<S: #service_ident> {
|
||||||
#( #camel_case_idents(<S as #service_ident>::#future_types) ),*
|
#( #camel_case_idents(<S as #service_ident>::#future_types) ),*
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user