mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-01 16:03:31 +02:00
Rename constant
This commit is contained in:
+2
-2
@@ -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"),
|
||||
|
||||
+2
-2
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user