mirror of
https://github.com/notohh/rustlings.git
synced 2025-07-28 16:10:05 -04:00
chore: Run cargo fmt
This commit is contained in:
parent
c4853ee6bb
commit
81f8c2f83c
4 changed files with 7 additions and 10 deletions
src
|
@ -167,9 +167,10 @@ path = "{}.rs""#,
|
|||
fn run(&self) -> Result<ExerciseOutput, ExerciseOutput> {
|
||||
let arg = match self.mode {
|
||||
Mode::Test => "--show-output",
|
||||
_ => ""
|
||||
_ => "",
|
||||
};
|
||||
let cmd = Command::new(&temp_file()).arg(arg)
|
||||
let cmd = Command::new(&temp_file())
|
||||
.arg(arg)
|
||||
.output()
|
||||
.expect("Failed to run 'run' command");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue