finish the lint pass: allow what is contractual, fix what is not

This commit is contained in:
2026-09-21 01:38:01 +03:00
parent c46fe82543
commit c746f4916a
6 changed files with 110 additions and 8 deletions
+4
View File
@@ -14,6 +14,10 @@ fn main() {
fn compile_shaders() {
// Cargo always sets OUT_DIR for a build script; if it is missing the build
// is broken in a way we cannot paper over, so say so plainly.
#[allow(
clippy::expect_used,
reason = "a build script without OUT_DIR cannot produce a usable build"
)]
let out_dir = PathBuf::from(
std::env::var("OUT_DIR").expect("OUT_DIR is set by cargo for build scripts"),
);