Use timestamp_opt() instead of timestamp() in test

This commit is contained in:
Daniel Hofstetter
2023-08-28 09:34:38 +02:00
parent ff0f99bea5
commit 7f0a909752
+1 -1
View File
@@ -255,7 +255,7 @@ mod tests {
];
for offset in offsets {
let time = Utc.timestamp(offset, 0);
let time = Utc.timestamp_opt(offset, 0).unwrap();
let dt = from_str(format!("@{}", offset));
assert_eq!(dt.unwrap(), time);
}