diff --git a/bin/domain/imag-contact/src/create.rs b/bin/domain/imag-contact/src/create.rs index 7ef728a4..d481b802 100644 --- a/bin/domain/imag-contact/src/create.rs +++ b/bin/domain/imag-contact/src/create.rs @@ -258,7 +258,7 @@ fn parse_toml_into_vcard(toml: Value) -> Option { { // parse phone debug!("Parse phone"); - match toml.read("phone").map_err_trace_exit_unwrap(1) { + match toml.read("person.phone").map_err_trace_exit_unwrap(1) { Some(&Value::Array(ref ary)) => { for (i, element) in ary.iter().enumerate() { let phonetype = match read_str_from_toml(element, "type") { @@ -343,7 +343,7 @@ fn parse_toml_into_vcard(toml: Value) -> Option { { // parse email debug!("Parsing email"); - match toml.read("email").map_err_trace_exit_unwrap(1) { + match toml.read("person.email").map_err_trace_exit_unwrap(1) { Some(&Value::Array(ref ary)) => { for (i, element) in ary.iter().enumerate() { let mailtype = match read_str_from_toml(element, "type") {