Fix infinite recursion in BadIcon reporting (#3237)

This commit is contained in:
Kirill Chibisov
2023-11-23 22:15:17 +04:00
parent 7aa202b872
commit 7449534ba2

View File

@@ -49,11 +49,7 @@ impl fmt::Display for BadIcon {
} }
} }
impl Error for BadIcon { impl Error for BadIcon {}
fn source(&self) -> Option<&(dyn Error + 'static)> {
Some(self)
}
}
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct RgbaIcon { pub(crate) struct RgbaIcon {