From ca88bb65c46a71eeb359e25cae8943e020b71adb Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 3 Aug 2024 14:18:52 +0200 Subject: [PATCH] Remove panic --- src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7db1cdb..2dc812f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -66,9 +66,6 @@ impl Toasts { /// Adds new toast to the collection. /// By default adds toast at the end of the list, can be changed with `self.reverse`. - /// # Panics - /// - /// Will panic if after adding a toast the list is empty. pub fn add(&mut self, toast: Toast) -> &mut Toast { if self.reverse { self.toasts.insert(0, toast);