mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
Format hashglobe #21373
This commit is contained in:
parent
2c9e32a09e
commit
951bda3600
7 changed files with 552 additions and 434 deletions
|
@ -29,11 +29,11 @@ impl<T: 'static> Unique<T> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl<T: Send + 'static> Send for Unique<T> { }
|
||||
unsafe impl<T: Send + 'static> Send for Unique<T> {}
|
||||
|
||||
unsafe impl<T: Sync + 'static> Sync for Unique<T> { }
|
||||
unsafe impl<T: Sync + 'static> Sync for Unique<T> {}
|
||||
|
||||
pub struct Shared<T: 'static> {
|
||||
pub struct Shared<T: 'static> {
|
||||
ptr: NonZeroPtr<T>,
|
||||
_marker: PhantomData<T>,
|
||||
// force it to be !Send/!Sync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue