From 8f3369c6867c562c96d5b8f4c33e953e60e72416 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 23 Nov 2023 16:36:15 +0400 Subject: [PATCH] Fix infinite recursion in `BadIcon` reporting --- src/icon.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/icon.rs b/src/icon.rs index 2927665935..b61cdd3b7f 100644 --- a/src/icon.rs +++ b/src/icon.rs @@ -49,11 +49,7 @@ impl fmt::Display for BadIcon { } } -impl Error for BadIcon { - fn source(&self) -> Option<&(dyn Error + 'static)> { - Some(self) - } -} +impl Error for BadIcon {} #[derive(Debug, Clone, PartialEq, Eq)] pub(crate) struct RgbaIcon {