From a1cc803ae408af748b1e18e22d33c3ce3a723e8e Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Tue, 10 Oct 2023 16:47:53 +0000 Subject: [PATCH] clippy allow --- libs/preprocessor/src/processor/defines.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/preprocessor/src/processor/defines.rs b/libs/preprocessor/src/processor/defines.rs index 0314a40b..3e4df4f1 100644 --- a/libs/preprocessor/src/processor/defines.rs +++ b/libs/preprocessor/src/processor/defines.rs @@ -228,6 +228,7 @@ impl Processor { buffer.push(Output::Macro(ident.clone(), layer)); self.defines.pop(); } + #[allow(clippy::needless_collect)] // causes recursion at runtime otherwise Definition::Value(body) => { let mut layer = Vec::new(); let body: Vec<_> = body.into_iter().filter(|t| !t.symbol().is_join()).collect();