Skip to content

Commit cc29dfa

Browse files
Add Rustdoc::current_dir method to run-make-support
1 parent d6d3b34 commit cc29dfa

File tree

1 file changed

+6
-0
lines changed
  • src/tools/run-make-support/src

1 file changed

+6
-0
lines changed

src/tools/run-make-support/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@ macro_rules! impl_common_helpers {
261261
}
262262
output
263263
}
264+
265+
/// Set the path where the command will be run.
266+
pub fn current_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
267+
self.cmd.current_dir(path);
268+
self
269+
}
264270
}
265271
};
266272
}

0 commit comments

Comments
 (0)