Merge pull request #136 from fabuloso/master

Use ceo instead of name in Company
pull/142/head
Dhghomon 3 years ago committed by GitHub
commit e23c58a846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6192,7 +6192,7 @@ impl Company {
fn new(name: &str, ceo: &str) -> Self {
let ceo = match ceo {
"" => None,
name => Some(name.to_string()),
ceo => Some(ceo.to_string()),
}; // ceo is decided, so now we return Self
Self {
name: name.to_string(),
@ -6258,7 +6258,7 @@ impl Company {
fn new(name: &str, ceo: &str) -> Self {
let ceo = match ceo {
"" => None,
name => Some(name.to_string()),
ceo => Some(ceo.to_string()),
};
Self {
name: name.to_string(),

Loading…
Cancel
Save