diff options
| author | mo8it <mo8it@proton.me> | 2024-04-21 19:26:19 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-21 19:26:19 +0200 |
| commit | f1a60780b9d8cd7be544c3e09ddeb3834493c271 (patch) | |
| tree | e5ab8f15a5cc88f4838741ef5b08d91867b12115 /src/dev.rs | |
| parent | d83c91edc6365c90eb8d50be6f7036b38a64cba2 (diff) | |
Rename constant
Diffstat (limited to 'src/dev.rs')
| -rw-r--r-- | src/dev.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ use anyhow::{bail, Context, Result}; use clap::Subcommand; -use crate::DEVELOPING_OFFICIAL_RUSTLINGS; +use crate::DEBUG_PROFILE; mod check; mod init; @@ -18,8 +18,8 @@ impl DevCommands { pub fn run(self) -> Result<()> { match self { DevCommands::Init => { - if DEVELOPING_OFFICIAL_RUSTLINGS { - bail!("Disabled while developing the official Rustlings"); + if DEBUG_PROFILE { + bail!("Disabled in the debug build"); } init::init().context(INIT_ERR) |
