diff options
| author | mat <git@matdoes.dev> | 2025-02-22 23:01:54 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-22 23:01:54 +0000 |
| commit | 34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6 (patch) | |
| tree | 7920fec1203e8e96463a142f5f6da6164e76e684 /azalea/build.rs | |
| parent | bdd2fc91e11e2896d8e1c7046df247e1075bd40d (diff) | |
| download | azalea-drasl-34f53baf85fb5c7163ec5d71a8ab9d45d3f271b6.tar.xz | |
update to rust edition 2024
Diffstat (limited to 'azalea/build.rs')
| -rw-r--r-- | azalea/build.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/azalea/build.rs b/azalea/build.rs index 18300151..cd0a16b2 100644 --- a/azalea/build.rs +++ b/azalea/build.rs @@ -7,7 +7,9 @@ fn main() { if toolchain.contains("nightly") { return; } else { - panic!("Azalea currently requires nightly Rust. You can run `rustup override set nightly` to set the toolchain for this directory."); + panic!( + "Azalea currently requires nightly Rust. You can run `rustup override set nightly` to set the toolchain for this directory." + ); } } @@ -22,7 +24,9 @@ fn main() { if rustc_command.status.success() { let rustc_output = String::from_utf8(rustc_command.stdout).unwrap(); if !rustc_output.contains("nightly") { - panic!("Azalea currently requires nightly Rust. Please check the documentation for your installation method and ensure you are using the nightly toolchain."); + panic!( + "Azalea currently requires nightly Rust. Please check the documentation for your installation method and ensure you are using the nightly toolchain." + ); } } else { let rustc_output = String::from_utf8(rustc_command.stderr).unwrap(); |
