Skip to content

Commit f0ab814

Browse files
Add Rustdoc::output_format
1 parent 1551fd1 commit f0ab814

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/tools/run-make-support/src/rustdoc.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ impl Rustdoc {
151151
self
152152
}
153153

154+
/// Specify the output format.
155+
pubfnoutput_format(&mutself,format:&str) -> &mutSelf{
156+
self.cmd.arg("--output-format");
157+
self.cmd.arg(format);
158+
self
159+
}
160+
154161
#[track_caller]
155162
pubfnrun_fail_assert_exit_code(&mutself,code:i32) -> Output{
156163
let caller_location = std::panic::Location::caller();

0 commit comments

Comments
 (0)