diff --git a/build.rs b/build.rs index e0f3e8e4..d01f0cb9 100644 --- a/build.rs +++ b/build.rs @@ -145,6 +145,7 @@ fn write_colours(output_file: &mut impl Write) -> Result<(), Box> { Ok(()) } +#[allow(unused_variables, unreachable_code)] fn main() -> Result<(), Box> { let out_path = std::env::var("OUT_DIR")?; @@ -155,7 +156,7 @@ fn main() -> Result<(), Box> { match contributors { Ok(contributors) => contributors, - Err(e) if std::env::var("IS_RELEASE").is_ok() => { + Err(e) if std::env::var("IS_RELEASE").is_ok_and(|v| v == "true") => { panic!("Getting contributors failed with error: {e}"); } _ => "pub const CONTRIBUTORS: [(&str, &str); 0] = [];".to_string(),