This commit is contained in:
Matthias Beyer 2017-11-08 17:41:59 +01:00
parent 00c73d53c7
commit 521d661f1c

View file

@ -381,19 +381,19 @@ fn parse_toml_into_vcard(toml: Value) -> Option<Vcard> {
{ // parse others { // parse others
debug!("Parsing others"); debug!("Parsing others");
if let Some(categories) = read_strary_from_toml(&toml, "others.categories") { if let Some(categories) = read_strary_from_toml(&toml, "other.categories") {
vcard = vcard.with_categories(categories); vcard = vcard.with_categories(categories);
} else { } else {
debug!("No categories"); debug!("No categories");
} }
if let Some(webpage) = read_str_from_toml(&toml, "others.webpage") { if let Some(webpage) = read_str_from_toml(&toml, "other.webpage") {
vcard = vcard.with_url(webpage); vcard = vcard.with_url(webpage);
} else { } else {
debug!("No webpage"); debug!("No webpage");
} }
if let Some(note) = read_str_from_toml(&toml, "others.note") { if let Some(note) = read_str_from_toml(&toml, "other.note") {
vcard = vcard.with_note(note); vcard = vcard.with_note(note);
} else { } else {
debug!("No note"); debug!("No note");