summaryrefslogtreecommitdiff
path: root/src/dev
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/dev
parentd83c91edc6365c90eb8d50be6f7036b38a64cba2 (diff)
Rename constant
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/check.rs4
-rw-r--r--src/dev/update.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dev/check.rs b/src/dev/check.rs
index e95eb3c..cd115b7 100644
--- a/src/dev/check.rs
+++ b/src/dev/check.rs
@@ -8,7 +8,7 @@ use std::{
use crate::{
info_file::{ExerciseInfo, InfoFile},
- CURRENT_FORMAT_VERSION, DEVELOPING_OFFICIAL_RUSTLINGS,
+ CURRENT_FORMAT_VERSION, DEBUG_PROFILE,
};
fn forbidden_char(input: &str) -> Option<char> {
@@ -193,7 +193,7 @@ pub fn check() -> Result<()> {
let info_file = InfoFile::parse()?;
check_exercises(&info_file)?;
- if DEVELOPING_OFFICIAL_RUSTLINGS {
+ if DEBUG_PROFILE {
check_cargo_toml(
&info_file.exercises,
include_str!("../../dev/Cargo.toml"),
diff --git a/src/dev/update.rs b/src/dev/update.rs
index 65dcf76..1f032f7 100644
--- a/src/dev/update.rs
+++ b/src/dev/update.rs
@@ -4,7 +4,7 @@ use anyhow::{Context, Result};
use crate::{
info_file::{ExerciseInfo, InfoFile},
- DEVELOPING_OFFICIAL_RUSTLINGS,
+ DEBUG_PROFILE,
};
use super::check::{append_bins, bins_start_end_ind};
@@ -30,7 +30,7 @@ fn update_cargo_toml(
pub fn update() -> Result<()> {
let info_file = InfoFile::parse()?;
- if DEVELOPING_OFFICIAL_RUSTLINGS {
+ if DEBUG_PROFILE {
update_cargo_toml(
&info_file.exercises,
include_str!("../../dev/Cargo.toml"),