WIP adding cbor stream test

This commit is contained in:
Dominik Werder committed 2023-12-18 15:53:33 +01:00
1 parent 31afee0893
commit a8479b2c8d
16 files changed
+407 -175

No files matched your search

+2 -2
View File
@@ -53,8 +53,8 @@ impl fmt::Debug for NanoRange {
impl NanoRange {
pub fn from_date_time(beg: DateTime<Utc>, end: DateTime<Utc>) -> Self {
Self {
beg: beg.timestamp_nanos() as u64,
end: end.timestamp_nanos() as u64,
beg: beg.timestamp_nanos_opt().unwrap_or(0) as u64,
end: end.timestamp_nanos_opt().unwrap_or(0) as u64,
}
}