File tree 1 file changed +8
-8
lines changed
src/tools/run-make-support/src
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -4,32 +4,32 @@ use std::process::{Command, Output};
4
4
5
5
use crate :: { add_host_rpath_env, handle_failed_output} ;
6
6
7
- pub fn rustdoc ( ) -> RustdocInvocationBuilder {
8
- RustdocInvocationBuilder :: new ( )
7
+ pub fn rustdoc ( ) -> Rustdoc {
8
+ Rustdoc :: new ( )
9
9
}
10
10
11
11
#[ derive( Debug ) ]
12
- pub struct RustdocInvocationBuilder {
12
+ pub struct Rustdoc {
13
13
cmd : Command ,
14
14
}
15
15
16
- impl RustdocInvocationBuilder {
16
+ impl Rustdoc {
17
17
fn new ( ) -> Self {
18
18
let cmd = setup_common_rustdoc_build_cmd ( ) ;
19
19
Self { cmd }
20
20
}
21
21
22
- pub fn arg ( & mut self , arg : & str ) -> & mut RustdocInvocationBuilder {
22
+ pub fn arg ( & mut self , arg : & str ) -> & mut Rustdoc {
23
23
self . cmd . arg ( arg) ;
24
24
self
25
25
}
26
26
27
- pub fn arg_file ( & mut self , arg : & Path ) -> & mut RustdocInvocationBuilder {
28
- self . cmd . arg ( arg) ;
27
+ pub fn arg_file < P : AsRef < Path > > ( & mut self , arg : P ) -> & mut Rustdoc {
28
+ self . cmd . arg ( arg. as_ref ( ) ) ;
29
29
self
30
30
}
31
31
32
- pub fn env ( & mut self , key : & str , value : & str ) -> & mut RustdocInvocationBuilder {
32
+ pub fn env ( & mut self , key : & str , value : & str ) -> & mut Rustdoc {
33
33
self . cmd . env ( key, value) ;
34
34
self
35
35
}
You can’t perform that action at this time.
0 commit comments