From 8e95fa492fad4abdac0c217ee533e23d8bff1c7c Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 24 Oct 2023 10:31:01 +0200 Subject: [PATCH] Silence warnings for unused static files --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index 113b5e6..f4455ee 100644 --- a/build.rs +++ b/build.rs @@ -72,6 +72,7 @@ fn make_static_constants(static_out_dir: &Path, static_out_file: &Path) { .join("_") .to_uppercase(); let path = format!("/{relative_path}?h={hash:x}"); + definitions.push_str("#[allow(dead_code)]\n"); definitions.push_str(&format!("pub const {name}: &str = {path:?};\n")); }