From 8f800c1e916472b3800260c33797c6c777a1436e Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 6 Jul 2024 22:17:10 +0200 Subject: [PATCH] fix codegen'ed lints --- build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 5d82e68..b090f5f 100644 --- a/build.rs +++ b/build.rs @@ -31,6 +31,7 @@ impl AssetsWriter { fn new>(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() @@ -80,14 +81,14 @@ impl AssetsWriter { for asset_name in root.assets.keys() { writeln!( file, - "pub {indent}\t{}: comfy::TextureHandle,", + "{indent}\tpub {}: comfy::TextureHandle,", asset_name.to_snake_case() )?; } for group_name in root.groups.keys() { writeln!( file, - "pub {indent}\t{group_name}: &'static {group_name}::Assets," + "{indent}\tpub {group_name}: &'static {group_name}::Assets," )?; } writeln!(file, "{indent}}}")?;