Make last two .exec_with_output() usages set Execs to ran

This commit is contained in:
Dale Wijnand 2018-08-29 00:12:06 +02:00
parent a173fc0abe
commit f16b95e492
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
1 changed files with 2 additions and 1 deletions

View File

@ -708,7 +708,8 @@ impl Execs {
self
}
pub fn exec_with_output(&self) -> CargoResult<Output> {
pub fn exec_with_output(&mut self) -> CargoResult<Output> {
self.ran = true;
// TODO avoid unwrap
let p = (&self.process_builder).clone().unwrap();
p.exec_with_output()