move the codegen'ed allow somewhere else
This commit is contained in:
parent
8f800c1e91
commit
0f1717675f
1 changed files with 1 additions and 1 deletions
2
build.rs
2
build.rs
|
@ -31,7 +31,6 @@ impl AssetsWriter {
|
|||
fn new<P: AsRef<Path>>(path: P) -> Self {
|
||||
let mut file = File::create(path).expect("Failed to create assets file");
|
||||
writeln!(file, "// @generated").unwrap();
|
||||
writeln!(file, "#![allow(dead_code)]").unwrap();
|
||||
Self {
|
||||
file,
|
||||
root: Assets::default()
|
||||
|
@ -77,6 +76,7 @@ impl AssetsWriter {
|
|||
writeln!(file, "}}")?;
|
||||
}
|
||||
|
||||
writeln!(file, "{indent}#[allow(dead_code)]")?;
|
||||
writeln!(file, "{indent}pub struct Assets {{")?;
|
||||
for asset_name in root.assets.keys() {
|
||||
writeln!(
|
||||
|
|
Loading…
Reference in a new issue