1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-12 13:16:08 +02:00

Only use arg instead of args AND arg

This commit is contained in:
mo8it 2024-03-26 17:48:06 +01:00
parent 853d0593d0
commit f36efae25d

View File

@ -21,7 +21,8 @@ pub fn run(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
// Resets the exercise by stashing the changes.
pub fn reset(exercise: &Exercise) -> Result<(), ()> {
let command = Command::new("git")
.args(["stash", "--"])
.arg("stash")
.arg("--")
.arg(&exercise.path)
.spawn();