diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-03 07:08:49 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-03 07:08:49 +0100 |
commit | 51bf8e89ce07864b70d7138bbc3958faf499cc67 (patch) | |
tree | 31e870adb0bcd539135059613e05a0f31e08e987 /src/viewmodel/name.rs | |
parent | 94a0e361e180223adf2bc9760c8810dfa3c2681f (diff) | |
download | wasm-card-51bf8e89ce07864b70d7138bbc3958faf499cc67.tar.gz wasm-card-51bf8e89ce07864b70d7138bbc3958faf499cc67.tar.bz2 |
now it compiles
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() { |