@@ -64,8 +64,6 @@ pub struct CommitInfo {
64
64
pub struct CfgInfo {
65
65
// Information about the git repository we may have been built from.
66
66
pub commit_info : Option < CommitInfo > ,
67
- // The date that the build was performed.
68
- pub build_date : String ,
69
67
// The release channel we were built for.
70
68
pub release_channel : String ,
71
69
}
@@ -93,15 +91,9 @@ impl fmt::Display for VersionInfo {
93
91
} ;
94
92
95
93
if let Some ( ref cfg) = self . cfg_info {
96
- match cfg. commit_info {
97
- Some ( ref ci) => {
98
- write ! ( f, " ({} {})" ,
99
- ci. short_commit_hash, ci. commit_date) ?;
100
- } ,
101
- None => {
102
- write ! ( f, " (built {})" ,
103
- cfg. build_date) ?;
104
- }
94
+ if let Some ( ref ci) = cfg. commit_info {
95
+ write ! ( f, " ({} {})" ,
96
+ ci. short_commit_hash, ci. commit_date) ?;
105
97
}
106
98
} ;
107
99
Ok ( ( ) )
@@ -260,7 +252,6 @@ pub fn version() -> VersionInfo {
260
252
patch : env_str ! ( "CARGO_PKG_VERSION_PATCH" ) ,
261
253
pre_release : option_env_str ! ( "CARGO_PKG_VERSION_PRE" ) ,
262
254
cfg_info : Some ( CfgInfo {
263
- build_date : option_env_str ! ( "CFG_BUILD_DATE" ) . unwrap ( ) ,
264
255
release_channel : option_env_str ! ( "CFG_RELEASE_CHANNEL" ) . unwrap ( ) ,
265
256
commit_info : commit_info,
266
257
} ) ,
0 commit comments