File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ use std::error::Error;
3
3
fn main ( ) -> Result < ( ) , Box < dyn Error > > {
4
4
// This prevents Cargo from rebuilding everything each time a non source code file changes.
5
5
println ! ( "cargo:rerun-if-changed=build.rs" ) ;
6
+ println ! ( "cargo::rustc-check-cfg=cfg(docs_rs)" ) ;
6
7
7
8
let target = std:: env:: var ( "TARGET" ) ?;
8
9
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl GitRepo {
18
18
pub ( super ) fn git_commit ( & self , workspace : & Workspace ) -> Option < String > {
19
19
let res = Command :: new ( workspace, "git" )
20
20
. args ( & [ "rev-parse" , "HEAD" ] )
21
- . cd ( & self . cached_path ( workspace) )
21
+ . cd ( self . cached_path ( workspace) )
22
22
. run_capture ( ) ;
23
23
24
24
match res {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ impl Tool for BinaryCrate {
47
47
}
48
48
49
49
fn install ( & self , workspace : & Workspace , fast_install : bool ) -> anyhow:: Result < ( ) > {
50
- let mut cmd = Command :: new ( workspace, & Toolchain :: MAIN . cargo ( ) )
50
+ let mut cmd = Command :: new ( workspace, Toolchain :: MAIN . cargo ( ) )
51
51
. args ( & [ "install" , self . crate_name ] )
52
52
. timeout ( None ) ;
53
53
if fast_install {
You can’t perform that action at this time.
0 commit comments