From 7449534ba2cc5894bd8a5a5e6f766cc1248cb31a Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 23 Nov 2023 22:15:17 +0400 Subject: [PATCH] Fix infinite recursion in `BadIcon` reporting (#3237) --- 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 {