1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-07-01 00:45:17 +02:00

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

View File

@ -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");
}