Use expect

This commit is contained in:
Felicio Mununga 2022-12-01 12:00:08 +01:00 committed by GitHub
parent 7aa593f3de
commit f14a05644a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,6 @@ impl Chat2Message {
}
pub fn timestamp(&self) -> DateTime<Utc> {
Utc.timestamp_opt(self.timestamp as i64, 0).unwrap()
Utc.timestamp_opt(self.timestamp as i64, 0).expect("Timestamps should not come out of bounds")
}
}