removing redundant closures in the whole project

This commit is contained in:
Grzegorz
2019-02-10 13:35:44 +01:00
parent b38c587b98
commit 16881390e1
14 changed files with 24 additions and 19 deletions

View File

@@ -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,