From 500ed594f5791036261a3d5d1a4493881400fc90 Mon Sep 17 00:00:00 2001 From: Peter Glotfelty Date: Mon, 1 Aug 2022 08:31:03 -0700 Subject: [PATCH] add allows to prevent lint errors --- strum_macros/src/macros/enum_iter.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/strum_macros/src/macros/enum_iter.rs b/strum_macros/src/macros/enum_iter.rs index 2e61137c..9c7017c0 100644 --- a/strum_macros/src/macros/enum_iter.rs +++ b/strum_macros/src/macros/enum_iter.rs @@ -66,6 +66,10 @@ pub fn enum_iter_inner(ast: &DeriveInput) -> syn::Result { 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,