From 198c9f42df32499a13cfcda06c758163319de20e Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 26 Aug 2026 13:50:44 -0600 Subject: [PATCH] fix(function): gate test-only declaration appender behind cfg(test) append_declaration is exercised only by unit tests; in the plain bin target it tripped dead_code under CI's RUSTFLAGS --deny warnings. --- src/function/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/function/mod.rs b/src/function/mod.rs index 87d6aad..acb5fcd 100644 --- a/src/function/mod.rs +++ b/src/function/mod.rs @@ -693,6 +693,7 @@ impl Functions { self.declarations.extend(jobs::job_function_declarations()); } + #[cfg(test)] pub fn append_declaration(&mut self, declaration: FunctionDeclaration) { self.declarations.push(declaration); }