From 8458696094afb675436a263b3fe55fa95d7aa5f0 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 25 Feb 2022 17:35:19 +0000 Subject: [PATCH] performance-metrics: Rename git_committer_date to git_commit_date The former implies a person rather than a thing. Signed-off-by: Rob Bradford --- performance-metrics/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/performance-metrics/src/main.rs b/performance-metrics/src/main.rs index 7847decbc..f5c6951e8 100644 --- a/performance-metrics/src/main.rs +++ b/performance-metrics/src/main.rs @@ -41,7 +41,7 @@ pub struct PerformanceTestResult { pub struct MetricsReport { pub git_human_readable: String, pub git_revision: String, - pub git_committer_date: String, + pub git_commit_date: String, pub date: String, pub results: Vec, } @@ -66,14 +66,14 @@ impl Default for MetricsReport { } } - let mut git_committer_date = "".to_string(); + let mut git_commit_date = "".to_string(); if let Ok(git_out) = Command::new("git") .args(&["show", "-s", "--format=%cd"]) .output() { if git_out.status.success() { if let Ok(git_out_str) = String::from_utf8(git_out.stdout) { - git_committer_date = git_out_str.trim().to_string(); + git_commit_date = git_out_str.trim().to_string(); } } } @@ -81,7 +81,7 @@ impl Default for MetricsReport { MetricsReport { git_human_readable, git_revision, - git_committer_date, + git_commit_date, date: date(), results: Vec::new(), }