From 51bf8e89ce07864b70d7138bbc3958faf499cc67 Mon Sep 17 00:00:00 2001 From: jelemux Date: Wed, 3 Feb 2021 07:08:49 +0100 Subject: now it compiles --- src/viewmodel/name.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/viewmodel/name.rs') 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 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() { -- cgit v1.2.3