Skip to content

Commit

Permalink
feat: Implement UnwindSafe on core
Browse files Browse the repository at this point in the history
With the new MSRV, UnwindSafe is now in libcore.

Signed-off-by: John Nunley <dev@notgull.net>
  • Loading branch information
notgull committed Aug 24, 2023
1 parent e408ccd commit 85ca6d3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ pub struct Event<T = ()> {
unsafe impl<T: Send> Send for Event<T> {}
unsafe impl<T: Send> Sync for Event<T> {}

#[cfg(feature = "std")]
impl<T> std::panic::UnwindSafe for Event<T> {}
#[cfg(feature = "std")]
impl<T> std::panic::RefUnwindSafe for Event<T> {}
impl<T> core::panic::UnwindSafe for Event<T> {}
impl<T> core::panic::RefUnwindSafe for Event<T> {}

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

0 comments on commit 85ca6d3

Please sign in to comment.