@@ -22,7 +22,6 @@ fn main() {
2222
2323 println ! ( "cargo::rustc-env=GIT_HASH_EXPERIENCED={}" , commit_sha) ;
2424 println ! ( "cargo::rustc-env=GIT_REV_COUNT_EXPERIENCED={}" , rev_num)
25-
2625}
2726
2827fn get_sha ( ) -> Result < String , Error > {
@@ -74,13 +73,12 @@ impl std::fmt::Display for Error {
7473 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
7574 match self {
7675 Self :: TryFromString => write ! ( f, "Invalid UTF-8 in `git` output" ) ?,
77- Self :: BadStatus ( exit_status) => write ! (
78- f,
79- "`git` exited with non-zero status {exit_status}"
80- ) ?,
76+ Self :: BadStatus ( exit_status) => {
77+ write ! ( f, "`git` exited with non-zero status {exit_status}" ) ?
78+ }
8179 Self :: Io ( error) => write ! ( f, "I/O error trying to run `git`: {error}" ) ?,
8280 Self :: NoOutput => write ! ( f, "No output from `git`" ) ?,
83- Self :: ParseInt ( error) => write ! ( f, "Could not convert to int: {error}" ) ?
81+ Self :: ParseInt ( error) => write ! ( f, "Could not convert to int: {error}" ) ?,
8482 }
8583 Ok ( ( ) )
8684 }
@@ -104,7 +102,6 @@ impl From<std::io::Error> for Error {
104102 }
105103}
106104
107-
108105impl From < std:: num:: ParseIntError > for Error {
109106 fn from ( value : std:: num:: ParseIntError ) -> Self {
110107 Self :: ParseInt ( value)
0 commit comments