From 8d3e53658271510205b2ec57ea87c34f0c776876 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 15 Dec 2019 18:34:49 +0100 Subject: [PATCH] Do not panic on SystemTimeDifference --- src/imap/idle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap/idle.rs b/src/imap/idle.rs index 38b546434..8752b3012 100644 --- a/src/imap/idle.rs +++ b/src/imap/idle.rs @@ -241,7 +241,7 @@ impl Imap { "IMAP-fake-IDLE done after {:.4}s", SystemTime::now() .duration_since(fake_idle_start_time) - .unwrap() + .unwrap_or_default() .as_millis() as f64 / 1000., );