Skip to content

Commit

Permalink
feat: Implement UnwindSafe for EventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Nov 12, 2023
1 parent c42dc40 commit 3f0d516
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,9 @@ pin_project_lite::pin_project! {
unsafe impl<T: Send> Send for EventListener<T> {}
unsafe impl<T: Send> Sync for EventListener<T> {}

impl<T> core::panic::UnwindSafe for EventListener<T> {}
impl<T> core::panic::RefUnwindSafe for EventListener<T> {}

impl<T> fmt::Debug for EventListener<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("EventListener")
Expand Down

0 comments on commit 3f0d516

Please sign in to comment.