summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-08-01 15:23:54 +0200
committermo8it <mo8it@proton.me>2024-08-01 15:23:54 +0200
commitc7590dd752ab35d06a85f016e88921f10934e6aa (patch)
tree0ab9fa0aae23cfe752c3aa67b70c7451c1eb3a65 /src/dev.rs
parent33a56803281ec4ec84fbe61919e9c825f1f446f7 (diff)
Improve the runner
Diffstat (limited to 'src/dev.rs')
-rw-r--r--src/dev.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dev.rs b/src/dev.rs
index 5f7e64c..8af40d6 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -2,8 +2,6 @@ use anyhow::{bail, Context, Result};
use clap::Subcommand;
use std::path::PathBuf;
-use crate::DEBUG_PROFILE;
-
mod check;
mod new;
mod update;
@@ -32,7 +30,7 @@ impl DevCommands {
pub fn run(self) -> Result<()> {
match self {
Self::New { path, no_git } => {
- if DEBUG_PROFILE {
+ if cfg!(debug_assertions) {
bail!("Disabled in the debug build");
}