From 5ab9c501e93907a8a688266fd027a48bbf1c2eca Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 11 Aug 2024 09:03:57 +0000 Subject: fmt --- azalea/build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'azalea') diff --git a/azalea/build.rs b/azalea/build.rs index 25fff0e5..6fe00484 100644 --- a/azalea/build.rs +++ b/azalea/build.rs @@ -3,11 +3,13 @@ use std::process::Command; fn main() { match env::var("RUSTUP_TOOLCHAIN") { - Ok(rust_toolchain) if !rust_toolchain.starts_with("nightly") => { // stable & beta + Ok(rust_toolchain) if !rust_toolchain.starts_with("nightly") => { + // stable & beta panic!("Azalea currently requires nightly Rust. You can use `rustup override set nightly` to set the toolchain for this directory."); } Ok(_) => return, // nightly - Err(_) => { // probably not installed via rustup, run rustc and parse its output + Err(_) => { + // probably not installed via rustup, run rustc and parse its output let rustc_command = env::var("RUSTC") .or_else(|_| env::var("CARGO_BUILD_RUSTC")) .unwrap_or(String::from("rustc")); -- cgit v1.2.3