From cc688c4dc73d3b13be5aba1bd292cc31265c5d04 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 6 Oct 2020 00:18:37 +0300 Subject: Allow days with no expenses Also fix "spelling" mistake in output ("..." instead of ".."). --- budget/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'budget/src') diff --git a/budget/src/lib.rs b/budget/src/lib.rs index 4dab46a..e8bb8f3 100644 --- a/budget/src/lib.rs +++ b/budget/src/lib.rs @@ -22,6 +22,7 @@ pub struct Account { pub struct Day { #[serde(deserialize_with = "deserialize_date")] pub date: NaiveDate, + #[serde(default)] pub expenses: Vec, } -- cgit v1.2.3