1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-12-26 00:11:49 +02:00

Compare commits

..

3 Commits
1.2.0 ... 1.2.1

Author SHA1 Message Date
liv
0279294972 1.2.1 2019-04-22 19:12:30 +08:00
liv
7eddee6f7a add a slightly more helpful error message 2019-04-22 18:43:39 +08:00
liv
f2c48cfac5 fix the --nocapture functionality 2019-04-22 18:42:32 +08:00
3 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "rustlings"
version = "1.2.0"
version = "1.2.1"
authors = ["Olivia <819880950@qq.com>", "Carol (Nichols || Goulding) <carol.nichols@gmail.com"]
edition = "2018"

View File

@@ -38,7 +38,6 @@ impl Exercise {
Mode::Test => Command::new("rustc")
.args(&["--test", self.path.to_str().unwrap(), "-o", &temp_file()])
.args(RUSTC_COLOR_ARGS)
.args(&["--", "--nocapture"])
.output(),
}
.expect("Failed to run 'compile' command.")
@@ -46,6 +45,7 @@ impl Exercise {
pub fn run(&self) -> Output {
Command::new(&temp_file())
.args(&["--", "--nocapture"])
.output()
.expect("Failed to run 'run' command")
}

View File

@@ -55,6 +55,7 @@ fn main() {
"{} must be run from the rustlings directory",
std::env::current_exe().unwrap().to_str().unwrap()
);
println!("Try `cd rustlings/`!");
std::process::exit(1);
}