diff --git a/examples/toy-chat/src/protocol.rs b/examples/toy-chat/src/protocol.rs index 17dc3d8..f09e82d 100644 --- a/examples/toy-chat/src/protocol.rs +++ b/examples/toy-chat/src/protocol.rs @@ -37,6 +37,6 @@ impl Chat2Message { } pub fn timestamp(&self) -> DateTime { - 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") } }