Rename constant

This commit is contained in:
mo8it
2024-04-21 19:26:19 +02:00
parent d83c91edc6
commit f1a60780b9
5 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -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)