From 7aa593f3deb1f8305b6d136d86eb436c4b1178e3 Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Thu, 1 Dec 2022 11:46:15 +0100 Subject: [PATCH] Use `.unwrap()` --- examples/toy-chat/src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/toy-chat/src/protocol.rs b/examples/toy-chat/src/protocol.rs index dbcb300..17dc3d8 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) + Utc.timestamp_opt(self.timestamp as i64, 0).unwrap() } }