Silence warnings for unused static files

This commit is contained in:
Joscha 2023-10-24 10:31:01 +02:00
parent e2693242e5
commit 8e95fa492f

View file

@ -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"));
}