mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-02 14:03:12 +00:00
Use expect
This commit is contained in:
parent
7aa593f3de
commit
f14a05644a
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user