Silence warnings for unused static files
This commit is contained in:
parent
e2693242e5
commit
8e95fa492f
1 changed files with 1 additions and 0 deletions
1
build.rs
1
build.rs
|
|
@ -72,6 +72,7 @@ fn make_static_constants(static_out_dir: &Path, static_out_file: &Path) {
|
||||||
.join("_")
|
.join("_")
|
||||||
.to_uppercase();
|
.to_uppercase();
|
||||||
let path = format!("/{relative_path}?h={hash:x}");
|
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"));
|
definitions.push_str(&format!("pub const {name}: &str = {path:?};\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue