Avoid turning path into strings when not needed

This commit is contained in:
Roey Darwish Dror
2019-05-15 10:59:05 +03:00
parent 5c3e81b325
commit 93d3eb2bc3
3 changed files with 7 additions and 9 deletions

View File

@@ -43,7 +43,9 @@ impl Emacs {
run_type
.execute(&emacs)
.args(&["--batch", "-l", init_file.to_str().unwrap(), "--eval", EMACS_UPGRADE])
.args(&["--batch", "-l"])
.arg(init_file)
.args(&["--eval", EMACS_UPGRADE])
.check_run()
}
}