Skip to content

Commit 85ca6d3

Browse files
authored
feat: Implement UnwindSafe on core
With the new MSRV, UnwindSafe is now in libcore. Signed-off-by: John Nunley <[email protected]>
1 parent e408ccd commit 85ca6d3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ pub struct Event<T = ()> {
165165
unsafe impl<T: Send> Send for Event<T> {}
166166
unsafe impl<T: Send> Sync for Event<T> {}
167167

168-
#[cfg(feature = "std")]
169-
impl<T> std::panic::UnwindSafe for Event<T> {}
170-
#[cfg(feature = "std")]
171-
impl<T> std::panic::RefUnwindSafe for Event<T> {}
168+
impl<T> core::panic::UnwindSafe for Event<T> {}
169+
impl<T> core::panic::RefUnwindSafe for Event<T> {}
172170

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

0 commit comments

Comments
 (0)