diff options
| author | Grzegorz <grzegorz.bartoszek@thaumatec.com> | 2019-02-10 13:35:44 +0100 |
|---|---|---|
| committer | Grzegorz <grzegorz.bartoszek@thaumatec.com> | 2019-02-10 13:35:44 +0100 |
| commit | 16881390e1f1d7cbf2737e0d78560d4eaa3bb8c1 (patch) | |
| tree | 7c8ca236aae81f0d7be5a369ead1c0b1720ab527 /rustc_tools_util | |
| parent | b38c587b98059d002babb3023820061d0e03c5cf (diff) | |
removing redundant closures in the whole project
Diffstat (limited to 'rustc_tools_util')
| -rw-r--r-- | rustc_tools_util/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rustc_tools_util/src/lib.rs b/rustc_tools_util/src/lib.rs index f13fa12ccca..19c27754839 100644 --- a/rustc_tools_util/src/lib.rs +++ b/rustc_tools_util/src/lib.rs @@ -9,8 +9,8 @@ macro_rules! get_version_info { let crate_name = String::from(env!("CARGO_PKG_NAME")); let host_compiler = $crate::get_channel(); - let commit_hash = option_env!("GIT_HASH").map(|s| s.to_string()); - let commit_date = option_env!("COMMIT_DATE").map(|s| s.to_string()); + let commit_hash = option_env!("GIT_HASH").map(str::to_string); + let commit_date = option_env!("COMMIT_DATE").map(str::to_string); VersionInfo { major, |
