aboutsummaryrefslogtreecommitdiff
path: root/src/export.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/export.rs')
-rw-r--r--src/export.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/export.rs b/src/export.rs
index 72d954ab..29635d15 100644
--- a/src/export.rs
+++ b/src/export.rs
@@ -78,7 +78,7 @@ impl Priority {
///
/// Will overwrite the current Priority
#[inline(always)]
- pub unsafe fn new(value: u8) -> Self {
+ pub const unsafe fn new(value: u8) -> Self {
Priority {
inner: Cell::new(value),
}
@@ -98,6 +98,9 @@ impl Priority {
}
}
+// PER: not sure if this is a problem
+unsafe impl Sync for Priority {}
+
#[inline(always)]
pub fn assert_send<T>()
where