diff options
Diffstat (limited to 'src/viewmodel')
-rw-r--r-- | src/viewmodel/vcard.rs | 13 |
1 files changed, 6 insertions, 7 deletions
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<Irc<Name>>, - pub addresses: Vec<Irc<Address>>, - pub telephones: Vec<Irc<Telephone>>, + pub names: Vec<Name>, + pub addresses: Vec<Address>, + pub telephones: Vec<Telephone>, } 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<Name> ); - make_vec_adder_fn!( fn add_address addresses => address: Irc<Address> ); - make_vec_adder_fn!( fn add_telephone telephones => telephone: Irc<Telephone> ); + 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 |