diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2022-08-31 09:24:45 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2022-08-31 09:24:45 -0400 |
| commit | fb41bfa77405233da5ddd324091380e018e3d956 (patch) | |
| tree | 5542e247fac4af781cad93f553a8e6bbc4b8a842 /rustc_tools_util | |
| parent | 7ba06ec9c5fb165e717f6d732ce50771733f31c4 (diff) | |
| download | rust-fb41bfa77405233da5ddd324091380e018e3d956.tar.gz rust-fb41bfa77405233da5ddd324091380e018e3d956.zip | |
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
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 5f289918a7c..429dddc42ea 100644 --- a/rustc_tools_util/src/lib.rs +++ b/rustc_tools_util/src/lib.rs @@ -84,7 +84,7 @@ impl std::fmt::Debug for VersionInfo { #[must_use] pub fn get_commit_hash() -> Option<String> { std::process::Command::new("git") - .args(&["rev-parse", "--short", "HEAD"]) + .args(["rev-parse", "--short", "HEAD"]) .output() .ok() .and_then(|r| String::from_utf8(r.stdout).ok()) @@ -93,7 +93,7 @@ pub fn get_commit_hash() -> Option<String> { #[must_use] pub fn get_commit_date() -> Option<String> { std::process::Command::new("git") - .args(&["log", "-1", "--date=short", "--pretty=format:%cd"]) + .args(["log", "-1", "--date=short", "--pretty=format:%cd"]) .output() .ok() .and_then(|r| String::from_utf8(r.stdout).ok()) |
