Skip to content

Commit

Permalink
add allows to prevent lint errors (#231)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Glotfelty <[email protected]>
  • Loading branch information
Peternator7 and Peter Glotfelty authored Aug 7, 2022
1 parent 0ba53ff commit d8278db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions strum_macros/src/macros/enum_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {

Ok(quote! {
#[doc = "An iterator over the variants of [Self]"]
#[allow(
missing_copy_implementations,
missing_debug_implementations,
)]
#vis struct #iter_name #ty_generics {
idx: usize,
back_idx: usize,
Expand Down

0 comments on commit d8278db

Please sign in to comment.