@@ -13,7 +13,7 @@ use build_helper::output;
1313use crate :: Build ;
1414
1515// The version number
16- pub const CFG_RELEASE_NUM : & str = "1.41.0 " ;
16+ pub const CFG_RELEASE_NUM : & str = "1.41.1 " ;
1717
1818pub struct GitInfo {
1919 inner : Option < Info > ,
@@ -29,31 +29,28 @@ impl GitInfo {
2929 pub fn new ( ignore_git : bool , dir : & Path ) -> GitInfo {
3030 // See if this even begins to look like a git dir
3131 if ignore_git || !dir. join ( ".git" ) . exists ( ) {
32- return GitInfo { inner : None }
32+ return GitInfo { inner : None } ;
3333 }
3434
3535 // Make sure git commands work
36- match Command :: new ( "git" )
37- . arg ( "rev-parse" )
38- . current_dir ( dir)
39- . output ( )
40- {
36+ match Command :: new ( "git" ) . arg ( "rev-parse" ) . current_dir ( dir) . output ( ) {
4137 Ok ( ref out) if out. status . success ( ) => { }
4238 _ => return GitInfo { inner : None } ,
4339 }
4440
4541 // Ok, let's scrape some info
46- let ver_date = output ( Command :: new ( "git" ) . current_dir ( dir)
47- . arg ( "log" ) . arg ( "-1" )
48- . arg ( "--date=short" )
49- . arg ( "--pretty=format:%cd" ) ) ;
50- let ver_hash = output ( Command :: new ( "git" ) . current_dir ( dir)
51- . arg ( "rev-parse" ) . arg ( "HEAD" ) ) ;
52- let short_ver_hash = output ( Command :: new ( "git" )
53- . current_dir ( dir)
54- . arg ( "rev-parse" )
55- . arg ( "--short=9" )
56- . arg ( "HEAD" ) ) ;
42+ let ver_date = output (
43+ Command :: new ( "git" )
44+ . current_dir ( dir)
45+ . arg ( "log" )
46+ . arg ( "-1" )
47+ . arg ( "--date=short" )
48+ . arg ( "--pretty=format:%cd" ) ,
49+ ) ;
50+ let ver_hash = output ( Command :: new ( "git" ) . current_dir ( dir) . arg ( "rev-parse" ) . arg ( "HEAD" ) ) ;
51+ let short_ver_hash = output (
52+ Command :: new ( "git" ) . current_dir ( dir) . arg ( "rev-parse" ) . arg ( "--short=9" ) . arg ( "HEAD" ) ,
53+ ) ;
5754 GitInfo {
5855 inner : Some ( Info {
5956 commit_date : ver_date. trim ( ) . to_string ( ) ,
0 commit comments