finish the lint pass: allow what is contractual, fix what is not
This commit is contained in:
@@ -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"),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user