From 0b315c29bfcddc97f2fd4a5fb5db156346f9c10c Mon Sep 17 00:00:00 2001 From: Tim Kuehn Date: Tue, 20 Apr 2021 09:01:39 -0700 Subject: [PATCH] It's not currently possible to document the enum variants, which means projects that #[deny(missing_docs)] wouldn't compile if using tarpc services. --- plugins/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/src/lib.rs b/plugins/src/lib.rs index 95598d2..55ea25b 100644 --- a/plugins/src/lib.rs +++ b/plugins/src/lib.rs @@ -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 { #( #camel_case_idents(::#future_types) ),* }