summaryrefslogtreecommitdiffstats
path: root/melib/src/addressbook.rs
diff options
context:
space:
mode:
Diffstat (limited to 'melib/src/addressbook.rs')
-rw-r--r--melib/src/addressbook.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/melib/src/addressbook.rs b/melib/src/addressbook.rs
index 86022008..b0920ebb 100644
--- a/melib/src/addressbook.rs
+++ b/melib/src/addressbook.rs
@@ -146,7 +146,7 @@ impl Card {
self.id = new;
}
pub fn set_title(&mut self, new: &str) {
- self.title = new.to_string();()
+ self.title = new.to_string();
}
pub fn set_firstname(&mut self, new: &str) {
self.firstname = new.to_string();
@@ -217,3 +217,9 @@ impl From<FnvHashMap<String, String>> for Card {
card
}
}
+
+impl Default for Card {
+ fn default() -> Self {
+ Self::new()
+ }
+}