fix warning in build.rs
Some checks failed
Rust / rustfmt (push) Successful in 24s
Rust / clippy (push) Failing after 2m11s
Rust / build (push) Successful in 2m45s

This commit is contained in:
Dominic 2024-07-07 15:34:58 +02:00
parent 03e12d6feb
commit 2416ffd7dc
Signed by: msrd0
GPG key ID: AAF7C8430CA3345D

View file

@ -207,7 +207,7 @@ fn process_dir<P: AsRef<Path> + Copy>(
} else if path.extension().map(|ext| ext == "svg").unwrap_or(false) { } else if path.extension().map(|ext| ext == "svg").unwrap_or(false) {
process_svg(&path, dir, writer, groups); process_svg(&path, dir, writer, groups);
} else if path.extension().map(|ext| ext == "ogg").unwrap_or(false) { } else if path.extension().map(|ext| ext == "ogg").unwrap_or(false) {
process_ogg(&path, dir, writer, groups); process_ogg(&path, writer, groups);
} }
} }
} }
@ -258,9 +258,8 @@ fn process_svg<P: AsRef<Path> + Copy, Q: AsRef<Path>>(
); );
} }
fn process_ogg<P: AsRef<Path> + Copy, Q: AsRef<Path>>( fn process_ogg<P: AsRef<Path> + Copy>(
file: P, file: P,
dir: Q,
writer: &mut AssetsWriter, writer: &mut AssetsWriter,
groups: &[String] groups: &[String]
) { ) {