From b1151b840c15d2b3f3b707c39dd8d58c28715b34 Mon Sep 17 00:00:00 2001 From: Philip Tricca Date: Mon, 8 Dec 2025 17:00:37 -0800 Subject: [PATCH] Allow dead_code for generated variables --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index a46796a..7e0cf8d 100644 --- a/build.rs +++ b/build.rs @@ -74,7 +74,7 @@ fn write_path_to_conf(mut file: &File, path: &Path, name: &str) -> Result<()> { Ok(writeln!( file, - r##"pub const {}: &str = "{}";"##, + "#[allow(dead_code)]\npub const {}: &str =\n \"{}\";\n", name, path.display(), )?)