diff options
author | 2022-11-19 14:00:53 -0800 | |
---|---|---|
committer | 2022-11-19 14:00:53 -0800 | |
commit | 1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff (patch) | |
tree | e9f8b9fe28fca2858ce1c1a54871c022b8374199 /src/models/properties/tests.rs | |
parent | 52b5cb70ec6aaa058d306c9916bcb851f2311730 (diff) | |
download | notion-1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff.tar.gz notion-1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff.tar.zst notion-1e4f1d49919bf4dd0cfe1af1fcd95d1d90e4b7ff.zip |
style(cargo fmt): Add rustfmt config, and fmt code
Diffstat (limited to 'src/models/properties/tests.rs')
-rw-r--r-- | src/models/properties/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/properties/tests.rs b/src/models/properties/tests.rs index 022f080..86bead8 100644 --- a/src/models/properties/tests.rs +++ b/src/models/properties/tests.rs @@ -3,7 +3,7 @@ use chrono::NaiveDate; #[test] fn verify_date_parsing() { - let date = NaiveDate::from_ymd(2021, 01, 02); + let date = NaiveDate::from_ymd_opt(2021, 01, 02).unwrap(); let result = serde_json::to_string(&DateOrDateTime::Date(date)).unwrap(); let parsed: DateOrDateTime = serde_json::from_str(&result).unwrap(); println!("{:?}", parsed); |