summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-12 14:55:02 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-12 14:55:02 +0300
commitadc68578564f1936c60d7c17a912a648f1224752 (patch)
treeeec61deff8b527acf09ac0b8807a4f0e52b790b1
parent03467d2f26f67bb3ba0a687babc19f62640c3b7c (diff)
downloadclab-adc68578564f1936c60d7c17a912a648f1224752.tar.gz
feat! make last_checked mandatory
Sponsored-by: author
-rw-r--r--clab.md6
-rw-r--r--src/main.rs2
2 files changed, 5 insertions, 3 deletions
diff --git a/clab.md b/clab.md
index f5b09fb..b437cbc 100644
--- a/clab.md
+++ b/clab.md
@@ -65,11 +65,13 @@ then stdout is exactly "clab found matches:\nalice@example.com\tAlice Atherthon\
~~~{#address-book.yaml .file .yaml}
- name: Alice Atherthon
- email:
+ email:
work: alice@example.com
+ last_checked: 2021-09
- name: Bob Bobbington
- email:
+ email:
personal: bob@example.com
+ last_checked: 2021-09
~~~
diff --git a/src/main.rs b/src/main.rs
index 93c3158..d25fdaa 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -42,7 +42,7 @@ struct Entry {
phone: Option<HashMap<String, String>>,
irc: Option<HashMap<String, String>>,
address: Option<HashMap<String, String>>,
- last_checked: Option<String>,
+ last_checked: String,
}
impl Entry {