Phone and email information is in the person table
This commit is contained in:
parent
c8a8bdcd22
commit
00c73d53c7
1 changed files with 2 additions and 2 deletions
|
@ -258,7 +258,7 @@ fn parse_toml_into_vcard(toml: Value) -> Option<Vcard> {
|
|||
|
||||
{ // 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<Vcard> {
|
|||
|
||||
{ // 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") {
|
||||
|
|
Loading…
Reference in a new issue