Skip to content

Commit

Permalink
feat: Implement UnwindSafe on core (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEconomical authored Aug 25, 2023
1 parent cbdf9e8 commit 04f3a1e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,11 @@ extern crate std;

use alloc::boxed::Box;
use core::fmt;
use core::panic::{RefUnwindSafe, UnwindSafe};
use sync::atomic::{self, Ordering};

#[cfg(feature = "std")]
use std::error;
#[cfg(feature = "std")]
use std::panic::{RefUnwindSafe, UnwindSafe};

use crate::bounded::Bounded;
use crate::single::Single;
Expand Down Expand Up @@ -99,9 +98,7 @@ pub struct ConcurrentQueue<T>(Inner<T>);
unsafe impl<T: Send> Send for ConcurrentQueue<T> {}
unsafe impl<T: Send> Sync for ConcurrentQueue<T> {}

#[cfg(feature = "std")]
impl<T> UnwindSafe for ConcurrentQueue<T> {}
#[cfg(feature = "std")]
impl<T> RefUnwindSafe for ConcurrentQueue<T> {}

enum Inner<T> {
Expand Down

0 comments on commit 04f3a1e

Please sign in to comment.