Skip to content

Commit 7449534

Browse files
committed
Fix infinite recursion in BadIcon reporting (#3237)
1 parent 7aa202b commit 7449534

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/icon.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ impl fmt::Display for BadIcon {
4949
}
5050
}
5151

52-
impl Error for BadIcon {
53-
fn source(&self) -> Option<&(dyn Error + 'static)> {
54-
Some(self)
55-
}
56-
}
52+
impl Error for BadIcon {}
5753

5854
#[derive(Debug, Clone, PartialEq, Eq)]
5955
pub(crate) struct RgbaIcon {

0 commit comments

Comments
 (0)