summaryrefslogtreecommitdiff
path: root/src/exercise.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-28 21:10:31 +0100
committermo8it <mo8it@proton.me>2024-03-28 21:10:31 +0100
commit5b4103bbac180fcb1de747214647811a3622b476 (patch)
treee4fec81037101c45b14346421d77efff597e1e18 /src/exercise.rs
parentd5ed749e9fde03212fd6fe5d60e2ddfe9b2429c9 (diff)
Remove unneeded ./ from relative paths
Diffstat (limited to 'src/exercise.rs')
-rw-r--r--src/exercise.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exercise.rs b/src/exercise.rs
index 19f528a..16e4a41 100644
--- a/src/exercise.rs
+++ b/src/exercise.rs
@@ -13,7 +13,7 @@ const RUSTC_COLOR_ARGS: &[&str] = &["--color", "always"];
const RUSTC_EDITION_ARGS: &[&str] = &["--edition", "2021"];
const RUSTC_NO_DEBUG_ARGS: &[&str] = &["-C", "strip=debuginfo"];
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.
fn contains_not_done_comment(input: &str) -> bool {
@@ -36,7 +36,7 @@ fn temp_file() -> String {
.filter(|c| c.is_alphanumeric())
.collect();
- format!("./temp_{}_{thread_id}", process::id())
+ format!("temp_{}_{thread_id}", process::id())
}
// The mode of the exercise.