Use ceo instead of name in Company

pull/136/head
fabuloso 3 years ago
parent 2ff96aa67a
commit 46b97dc293

@ -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