From 3f0e5c21bae7a42c44c6758097c4950e98c3f65c Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Tue, 15 Oct 2019 22:23:47 +0200 Subject: [PATCH] Simplify comparison of author and committer --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3ca6696b248f62b38a65c30df2c6506c2f2209ab..6cb829015104b7c3da3400d5a9c5c7ccc4b95e7c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1778,7 +1778,7 @@ fn format(out: &mut Output, repo: &Repository, m: &ArgMatches) -> Result<()> { }; writeln!(out, "Subject: {}{}\n", prefix, subject)?; - if !no_from && (commit_author_name != committer_name || commit_author_email != committer_email) { + if !no_from && (commit_author_name, commit_author_email) != (committer_name, committer_email) { writeln!(out, "From: {} <{}>\n", commit_author_name, commit_author_email)?; } if !body.is_empty() {