Fix compile errors
This commit is contained in:
parent
b91afd5553
commit
e819bf73a3
|
|
@ -9,13 +9,8 @@ fn main() {
|
||||||
|
|
||||||
if let Some(author) = authors.get(&opt.initials) {
|
if let Some(author) = authors.get(&opt.initials) {
|
||||||
let mut updated_author: Author = author.clone();
|
let mut updated_author: Author = author.clone();
|
||||||
if let Some(name) = opt.name {
|
updated_author.name = opt.name;
|
||||||
updated_author.name = name;
|
updated_author.email = opt.email;
|
||||||
};
|
|
||||||
|
|
||||||
if let Some(email) = opt.email {
|
|
||||||
updated_author.email = email;
|
|
||||||
};
|
|
||||||
|
|
||||||
authors.insert(opt.initials, updated_author);
|
authors.insert(opt.initials, updated_author);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue