From f7e65c6cbba92c29671e4d06b92edb87c6f6b5f7 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 6 Jul 2024 17:29:10 +0200 Subject: [PATCH] fix clippy lint breaking my code --- build.rs | 1 + src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index c0cee5a..3615f37 100644 --- a/build.rs +++ b/build.rs @@ -65,6 +65,7 @@ impl AssetsWriter { ) -> io::Result<()> { for (group_name, group) in &root.groups { writeln!(file, "{indent}mod {group_name} {{")?; + writeln!(file, "{indent}\t#[allow(clippy::wildcard_imports)]")?; writeln!(file, "{indent}\tuse super::*;")?; write_assets_struct(file, group, &format!("{indent}\t"))?; writeln!(file, "}}")?; diff --git a/src/main.rs b/src/main.rs index c8c6b6a..9b93361 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ #![warn(rust_2018_idioms)] -#![forbid(clippy::wildcard_imports, elided_lifetimes_in_paths, unsafe_code)] -#[allow(dead_code, unused_variables)] +#![deny(clippy::wildcard_imports)] +#![forbid(elided_lifetimes_in_paths, unsafe_code)] mod assets { include!(env!("ASSETS_RS"));