From d0570afeaf8377df662520a90a2ccace8d4d0d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 17 Dec 2022 14:12:50 +0100 Subject: [PATCH] Update deprecated chrono::east call to east_opt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/room.rs b/src/room.rs index 0d6b870..3c2d74a 100644 --- a/src/room.rs +++ b/src/room.rs @@ -208,7 +208,7 @@ impl Room { if self.subject.is_none() { let subject = String::from(""); let setter = occupant; - let stamp = DateTime(Utc::now().with_timezone(&FixedOffset::east(0))); + let stamp = DateTime(Utc::now().with_timezone(&FixedOffset::east_opt(0).unwrap())); self.subject = Some((subject, setter, stamp)); }