Add Rustdoc::output_format

This commit is contained in:
Guillaume Gomez
2024-05-25 13:04:08 +02:00
parent 1551fd1202
commit f0ab814aec
@@ -151,6 +151,13 @@ pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
self
}
/// Specify the output format.
pub fn output_format(&mut self, format: &str) -> &mut Self {
self.cmd.arg("--output-format");
self.cmd.arg(format);
self
}
#[track_caller]
pub fn run_fail_assert_exit_code(&mut self, code: i32) -> Output {
let caller_location = std::panic::Location::caller();