Skip to content

Commit

Permalink
add lint ignores to paperclip unit struct
Browse files Browse the repository at this point in the history
  • Loading branch information
formlogic-kirk committed Oct 12, 2023
1 parent 6032584 commit 5e54e1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion macros/src/actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ pub fn emit_v2_operation(attrs: TokenStream, input: TokenStream) -> TokenStream
let unit_struct = Ident::new(&s_name, default_span);
let generics = &item_ast.sig.generics;
let mut generics_call = quote!();
let mut struct_definition = quote!(struct #unit_struct;);
let mut struct_definition = quote!(
#[allow(non_camel_case_types, missing_docs)]
struct #unit_struct;
);
let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
if !generics.params.is_empty() {
let turbofish = ty_generics.as_turbofish();
Expand Down

0 comments on commit 5e54e1e

Please sign in to comment.