From adc68578564f1936c60d7c17a912a648f1224752 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 12 Sep 2021 14:55:02 +0300 Subject: feat! make last_checked mandatory Sponsored-by: author --- clab.md | 6 ++++-- src/main.rs | 2 +- 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>, irc: Option>, address: Option>, - last_checked: Option, + last_checked: String, } impl Entry { -- cgit v1.2.1