mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 21:42:23 -05:00
Fix typo
This commit is contained in:
parent
7f433ae28f
commit
7005d8a400
4 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@ use std::{cmp::Ordering, fs};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
info_file::{ExerciseInfo, InfoFile},
|
info_file::{ExerciseInfo, InfoFile},
|
||||||
CURRENT_FORMAT_VERSION, DEVELOPING_OFFIFICAL_RUSTLINGS,
|
CURRENT_FORMAT_VERSION, DEVELOPING_OFFICIAL_RUSTLINGS,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn bins_start_end_ind(cargo_toml: &str) -> Result<(usize, usize)> {
|
pub fn bins_start_end_ind(cargo_toml: &str) -> Result<(usize, usize)> {
|
||||||
|
@ -68,7 +68,7 @@ pub fn check() -> Result<()> {
|
||||||
Ordering::Equal => (),
|
Ordering::Equal => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
if DEVELOPING_OFFIFICAL_RUSTLINGS {
|
if DEVELOPING_OFFICIAL_RUSTLINGS {
|
||||||
check_cargo_toml(
|
check_cargo_toml(
|
||||||
&info_file.exercises,
|
&info_file.exercises,
|
||||||
include_str!("../../dev/Cargo.toml"),
|
include_str!("../../dev/Cargo.toml"),
|
||||||
|
|
|
@ -4,7 +4,7 @@ use anyhow::{Context, Result};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
info_file::{ExerciseInfo, InfoFile},
|
info_file::{ExerciseInfo, InfoFile},
|
||||||
DEVELOPING_OFFIFICAL_RUSTLINGS,
|
DEVELOPING_OFFICIAL_RUSTLINGS,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::check::{append_bins, bins_start_end_ind};
|
use super::check::{append_bins, bins_start_end_ind};
|
||||||
|
@ -30,7 +30,7 @@ fn update_cargo_toml(
|
||||||
pub fn update() -> Result<()> {
|
pub fn update() -> Result<()> {
|
||||||
let info_file = InfoFile::parse()?;
|
let info_file = InfoFile::parse()?;
|
||||||
|
|
||||||
if DEVELOPING_OFFIFICAL_RUSTLINGS {
|
if DEVELOPING_OFFICIAL_RUSTLINGS {
|
||||||
update_cargo_toml(
|
update_cargo_toml(
|
||||||
&info_file.exercises,
|
&info_file.exercises,
|
||||||
include_str!("../../dev/Cargo.toml"),
|
include_str!("../../dev/Cargo.toml"),
|
||||||
|
|
|
@ -9,7 +9,7 @@ use std::{
|
||||||
use crate::{
|
use crate::{
|
||||||
embedded::{WriteStrategy, EMBEDDED_FILES},
|
embedded::{WriteStrategy, EMBEDDED_FILES},
|
||||||
info_file::Mode,
|
info_file::Mode,
|
||||||
DEVELOPING_OFFIFICAL_RUSTLINGS,
|
DEVELOPING_OFFICIAL_RUSTLINGS,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub struct TerminalFileLink<'a> {
|
pub struct TerminalFileLink<'a> {
|
||||||
|
@ -51,7 +51,7 @@ impl Exercise {
|
||||||
cmd.arg(command);
|
cmd.arg(command);
|
||||||
|
|
||||||
// A hack to make `cargo run` work when developing Rustlings.
|
// A hack to make `cargo run` work when developing Rustlings.
|
||||||
if DEVELOPING_OFFIFICAL_RUSTLINGS {
|
if DEVELOPING_OFFICIAL_RUSTLINGS {
|
||||||
cmd.arg("--manifest-path").arg("dev/Cargo.toml");
|
cmd.arg("--manifest-path").arg("dev/Cargo.toml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ mod watch;
|
||||||
use self::{app_state::AppState, dev::DevCommands, info_file::InfoFile, watch::WatchExit};
|
use self::{app_state::AppState, dev::DevCommands, info_file::InfoFile, watch::WatchExit};
|
||||||
|
|
||||||
const CURRENT_FORMAT_VERSION: u8 = 1;
|
const CURRENT_FORMAT_VERSION: u8 = 1;
|
||||||
const DEVELOPING_OFFIFICAL_RUSTLINGS: bool = {
|
const DEVELOPING_OFFICIAL_RUSTLINGS: bool = {
|
||||||
#[allow(unused_assignments, unused_mut)]
|
#[allow(unused_assignments, unused_mut)]
|
||||||
let mut debug_profile = false;
|
let mut debug_profile = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue