diff options
Diffstat (limited to 'src/viewmodel/name.rs')
-rw-r--r-- | src/viewmodel/name.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewmodel/name.rs b/src/viewmodel/name.rs index 26beaa1..a88e07f 100644 --- a/src/viewmodel/name.rs +++ b/src/viewmodel/name.rs @@ -1,7 +1,7 @@ use super::*; use crate::view::name::*; -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Name { pub prefix: String, pub first_name: String, @@ -70,7 +70,7 @@ impl VCardPropertyInputObject<NameView> for Name { impl Name { pub fn generate_fn(&self) -> String { - let full_name = String::new(); + let mut full_name = String::new(); full_name.push_str(&self.prefix); if !self.first_name.is_empty() { |