summaryrefslogtreecommitdiff
path: root/src/exercise.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/exercise.rs
parentd83c91edc6365c90eb8d50be6f7036b38a64cba2 (diff)
Rename constant
Diffstat (limited to 'src/exercise.rs')
-rw-r--r--src/exercise.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exercise.rs b/src/exercise.rs
index eb7b725..e85efe4 100644
--- a/src/exercise.rs
+++ b/src/exercise.rs
@@ -7,7 +7,7 @@ use std::{
process::{Command, Output},
};
-use crate::{info_file::Mode, DEVELOPING_OFFICIAL_RUSTLINGS};
+use crate::{info_file::Mode, DEBUG_PROFILE};
pub struct TerminalFileLink<'a> {
path: &'a str,
@@ -48,7 +48,7 @@ impl Exercise {
cmd.arg(command);
// A hack to make `cargo run` work when developing Rustlings.
- if DEVELOPING_OFFICIAL_RUSTLINGS && Path::new("tests").exists() {
+ if DEBUG_PROFILE && Path::new("tests").exists() {
cmd.arg("--manifest-path").arg("dev/Cargo.toml");
}