Fix infinite recursion in BadIcon reporting (#3237)

This commit is contained in:
Kirill Chibisov 2023-11-23 22:15:17 +04:00 committed by GitHub
parent 5612626944
commit 81a1d9c396
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {