From 0c8f99f4f58953334731cc195c385d31d8b0f695 Mon Sep 17 00:00:00 2001 From: jelemux Date: Thu, 4 Feb 2021 16:26:56 +0100 Subject: it works! --- src/viewmodel/vcard.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/viewmodel/vcard.rs') diff --git a/src/viewmodel/vcard.rs b/src/viewmodel/vcard.rs index 0225590..2b81fd8 100644 --- a/src/viewmodel/vcard.rs +++ b/src/viewmodel/vcard.rs @@ -1,4 +1,3 @@ -use yewtil::ptr::Irc; use crate::viewmodel::telephone::Telephone; use crate::viewmodel::address::Address; use crate::viewmodel::name::Name; @@ -6,9 +5,9 @@ use crate::viewmodel::name::Name; /// Type that represents the data structure of a vcard. #[derive(Clone, Debug)] pub struct VCardData { - pub names: Vec>, - pub addresses: Vec>, - pub telephones: Vec>, + pub names: Vec, + pub addresses: Vec
, + pub telephones: Vec, } macro_rules! make_vec_adder_fn { @@ -27,7 +26,7 @@ impl VCardData { telephones: Vec::new(), } } - make_vec_adder_fn!( fn add_name names => name: Irc ); - make_vec_adder_fn!( fn add_address addresses => address: Irc
); - make_vec_adder_fn!( fn add_telephone telephones => telephone: Irc ); + make_vec_adder_fn!( fn add_name names => name: Name ); + make_vec_adder_fn!( fn add_address addresses => address: Address ); + make_vec_adder_fn!( fn add_telephone telephones => telephone: Telephone ); } \ No newline at end of file -- cgit v1.2.3