diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-19 13:56:59 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:30 +0100 |
| commit | b8b881f446a226d6f3c4a7db7c9174590b47dbf6 (patch) | |
| tree | cf74ac7f716c0206df9c5dc4c7a2c1a5893aaddc /macros/src/codegen/shared_resources_struct.rs | |
| parent | 4601782466c518d313ba79d9437bf7a3f8dbbf76 (diff) | |
Fix so deny(missing_docs) work
Diffstat (limited to 'macros/src/codegen/shared_resources_struct.rs')
| -rw-r--r-- | macros/src/codegen/shared_resources_struct.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/macros/src/codegen/shared_resources_struct.rs b/macros/src/codegen/shared_resources_struct.rs index 24c93de..fa6f0fc 100644 --- a/macros/src/codegen/shared_resources_struct.rs +++ b/macros/src/codegen/shared_resources_struct.rs @@ -47,16 +47,19 @@ pub fn codegen(ctxt: Context, app: &App) -> (TokenStream2, TokenStream2) { fields.push(quote!( #(#cfgs)* + #[allow(missing_docs)] pub #name: &#lt #mut_ #ty )); } else if access.is_shared() { fields.push(quote!( #(#cfgs)* + #[allow(missing_docs)] pub #name: &'a #ty )); } else { fields.push(quote!( #(#cfgs)* + #[allow(missing_docs)] pub #name: shared_resources::#shared_name<'a> )); @@ -103,6 +106,7 @@ pub fn codegen(ctxt: Context, app: &App) -> (TokenStream2, TokenStream2) { let constructor = quote!( impl<'a> #ident<'a> { #[inline(always)] + #[allow(missing_docs)] pub unsafe fn new() -> Self { #ident { #(#values,)* |
