From e819bf73a39f12b93f9b72689d871d5a37401e62 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Sat, 1 Apr 2023 21:14:41 +0200 Subject: [PATCH] Fix compile errors --- src/bin/git-edit-coauthor.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/bin/git-edit-coauthor.rs b/src/bin/git-edit-coauthor.rs index 212cd0e..cd6e074 100644 --- a/src/bin/git-edit-coauthor.rs +++ b/src/bin/git-edit-coauthor.rs @@ -9,13 +9,8 @@ fn main() { if let Some(author) = authors.get(&opt.initials) { let mut updated_author: Author = author.clone(); - if let Some(name) = opt.name { - updated_author.name = name; - }; - - if let Some(email) = opt.email { - updated_author.email = email; - }; + updated_author.name = opt.name; + updated_author.email = opt.email; authors.insert(opt.initials, updated_author);