Improved the compiler code with clippy

This commit is contained in:
Michael Scholten 2024-04-23 11:47:51 +02:00
parent c67277301c
commit 3c5e88c7d1
4 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP");
if !std::env::var("RUSTC_BOOTSTRAP").is_ok() {
if std::env::var("RUSTC_BOOTSTRAP").is_err() {
eprintln!(
"error: you are attempting to build the compiler without going through bootstrap"
);