Skip to content

Commit

Permalink
Fix infinite recursion in BadIcon reporting (rust-windowing#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov authored Nov 23, 2023
1 parent 5612626 commit 81a1d9c
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 81a1d9c

Please sign in to comment.