Skip to content

Commit

Permalink
Fix infinite recursion in BadIcon reporting (#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov committed Nov 24, 2023
1 parent 7aa202b commit 7449534
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7449534

Please sign in to comment.