diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-12 14:55:02 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-09-12 14:55:02 +0300 |
commit | adc68578564f1936c60d7c17a912a648f1224752 (patch) | |
tree | eec61deff8b527acf09ac0b8807a4f0e52b790b1 | |
parent | 03467d2f26f67bb3ba0a687babc19f62640c3b7c (diff) | |
download | clab-adc68578564f1936c60d7c17a912a648f1224752.tar.gz |
feat! make last_checked mandatory
Sponsored-by: author
-rw-r--r-- | clab.md | 6 | ||||
-rw-r--r-- | src/main.rs | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -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 { |