summaryrefslogtreecommitdiff
path: root/src/dev/update.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/update.rs
parent33a56803281ec4ec84fbe61919e9c825f1f446f7 (diff)
Improve the runner
Diffstat (limited to 'src/dev/update.rs')
-rw-r--r--src/dev/update.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dev/update.rs b/src/dev/update.rs
index 66efe3d..680d302 100644
--- a/src/dev/update.rs
+++ b/src/dev/update.rs
@@ -4,7 +4,6 @@ use std::fs;
use crate::{
cargo_toml::updated_cargo_toml,
info_file::{ExerciseInfo, InfoFile},
- DEBUG_PROFILE,
};
// Update the `Cargo.toml` file.
@@ -27,7 +26,7 @@ pub fn update() -> Result<()> {
let info_file = InfoFile::parse()?;
// A hack to make `cargo run -- dev update` work when developing Rustlings.
- if DEBUG_PROFILE {
+ if cfg!(debug_assertions) {
update_cargo_toml(
&info_file.exercises,
include_str!("../../dev-Cargo.toml"),