From a4ccafb4de5f506ef3817c99a1ce120ac2b7ea28 Mon Sep 17 00:00:00 2001 From: leudz Date: Thu, 11 Jul 2024 19:38:07 +0200 Subject: [PATCH] Fix warning --- shipyard_proc/src/into_iter_expand.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/shipyard_proc/src/into_iter_expand.rs b/shipyard_proc/src/into_iter_expand.rs index 3c8753a9..49c86707 100644 --- a/shipyard_proc/src/into_iter_expand.rs +++ b/shipyard_proc/src/into_iter_expand.rs @@ -54,6 +54,7 @@ pub(crate) fn expand_into_iter( let item_name = Ident::new(&iter_item_name, name_string.span()); let iter_name = Ident::new(&format!("{}Iter", name_string), name_string.span()); + #[cfg_attr(not(feature = "parallel"), allow(unused_variables))] let par_iter_name = Ident::new(&format!("{}ParIter", name_string), name_string.span()); let Some(lifetime) = generics.lifetimes_mut().next() else {