diff options
| author | mo8it <mo8it@proton.me> | 2024-04-17 15:55:50 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-17 15:55:50 +0200 |
| commit | 501b973c258a3c2e3a463d58c16402302184380f (patch) | |
| tree | a03812f5d3f5a5ef9e171077fb6aa6571a3f31fb /src/exercise.rs | |
| parent | 30636e7cf345757f95235744ff81376ae81c9aa2 (diff) | |
Add "dev update"
Diffstat (limited to 'src/exercise.rs')
| -rw-r--r-- | src/exercise.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/exercise.rs b/src/exercise.rs index 8bdf399..c4df999 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -9,6 +9,7 @@ use std::{ use crate::{ embedded::{WriteStrategy, EMBEDDED_FILES}, info_file::Mode, + DEVELOPING_OFFIFICAL_RUSTLINGS, }; pub struct TerminalFileLink<'a> { @@ -50,9 +51,7 @@ impl Exercise { cmd.arg(command); // A hack to make `cargo run` work when developing Rustlings. - // Use `dev/Cargo.toml` when in the directory of the repository. - #[cfg(debug_assertions)] - if std::path::Path::new("tests").exists() { + if DEVELOPING_OFFIFICAL_RUSTLINGS { cmd.arg("--manifest-path").arg("dev/Cargo.toml"); } |
