1
0
mirror of https://github.com/danog/strum.git synced 2024-11-30 04:28:59 +01:00

add allows to prevent lint errors (#231)

Co-authored-by: Peter Glotfelty <peter@glotfelty.us>
This commit is contained in:
Peter Glotfelty 2022-08-07 16:32:28 -07:00 committed by GitHub
parent 0ba53fff6c
commit d8278db866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,