feat: Implement `UnwindSafe` for `EventListener`

This commit is contained in:
Pierre Krieger 2023-11-12 21:49:31 +01:00 committed by GitHub
parent c42dc40785
commit 3f0d516c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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")