fix clippy lint breaking my code

This commit is contained in:
Dominic 2024-07-06 17:29:10 +02:00
parent ce45bc622d
commit f7e65c6cbb
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D
2 changed files with 3 additions and 2 deletions

View file

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

View file

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