summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-21 19:26:19 +0200
committermo8it <mo8it@proton.me>2024-04-21 19:26:19 +0200
commitf1a60780b9d8cd7be544c3e09ddeb3834493c271 (patch)
treee5ab8f15a5cc88f4838741ef5b08d91867b12115 /src/main.rs
parentd83c91edc6365c90eb8d50be6f7036b38a64cba2 (diff)
Rename constant
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 4c5f114..69ac0a3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,7 +25,7 @@ mod run;
mod watch;
const CURRENT_FORMAT_VERSION: u8 = 1;
-const DEVELOPING_OFFICIAL_RUSTLINGS: bool = {
+const DEBUG_PROFILE: bool = {
#[allow(unused_assignments, unused_mut)]
let mut debug_profile = false;
@@ -79,8 +79,8 @@ fn main() -> Result<()> {
match args.command {
Some(Subcommands::Init) => {
- if DEVELOPING_OFFICIAL_RUSTLINGS {
- bail!("Disabled while developing the official Rustlings");
+ if DEBUG_PROFILE {
+ bail!("Disabled in the debug build");
}
return init::init().context("Initialization failed");