mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
Remove unneeded ./ from relative paths
This commit is contained in:
parent
d5ed749e9f
commit
5b4103bbac
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ const RUSTC_COLOR_ARGS: &[&str] = &["--color", "always"];
|
||||||
const RUSTC_EDITION_ARGS: &[&str] = &["--edition", "2021"];
|
const RUSTC_EDITION_ARGS: &[&str] = &["--edition", "2021"];
|
||||||
const RUSTC_NO_DEBUG_ARGS: &[&str] = &["-C", "strip=debuginfo"];
|
const RUSTC_NO_DEBUG_ARGS: &[&str] = &["-C", "strip=debuginfo"];
|
||||||
const CONTEXT: usize = 2;
|
const CONTEXT: usize = 2;
|
||||||
const CLIPPY_CARGO_TOML_PATH: &str = "./exercises/22_clippy/Cargo.toml";
|
const CLIPPY_CARGO_TOML_PATH: &str = "exercises/22_clippy/Cargo.toml";
|
||||||
|
|
||||||
// Checks if the line contains the "I AM NOT DONE" comment.
|
// Checks if the line contains the "I AM NOT DONE" comment.
|
||||||
fn contains_not_done_comment(input: &str) -> bool {
|
fn contains_not_done_comment(input: &str) -> bool {
|
||||||
|
@ -36,7 +36,7 @@ fn temp_file() -> String {
|
||||||
.filter(|c| c.is_alphanumeric())
|
.filter(|c| c.is_alphanumeric())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
format!("./temp_{}_{thread_id}", process::id())
|
format!("temp_{}_{thread_id}", process::id())
|
||||||
}
|
}
|
||||||
|
|
||||||
// The mode of the exercise.
|
// The mode of the exercise.
|
||||||
|
|
|
@ -342,7 +342,7 @@ fn watch(
|
||||||
let mut debouncer = new_debouncer(Duration::from_secs(1), tx)?;
|
let mut debouncer = new_debouncer(Duration::from_secs(1), tx)?;
|
||||||
debouncer
|
debouncer
|
||||||
.watcher()
|
.watcher()
|
||||||
.watch(Path::new("./exercises"), RecursiveMode::Recursive)?;
|
.watch(Path::new("exercises"), RecursiveMode::Recursive)?;
|
||||||
|
|
||||||
clear_screen();
|
clear_screen();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue