File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " atomic_ref"
3
- version = " 0.1.1 "
3
+ version = " 0.1.2 "
4
4
authors = [" Michael Layzell <michael@thelayzells.com>" ]
5
5
6
6
description = " Atomic &'a T types with support for static allocation"
Original file line number Diff line number Diff line change 72
72
//! }
73
73
//! ```
74
74
75
+ use std:: sync:: Mutex ;
75
76
use std:: sync:: atomic:: { AtomicUsize , ATOMIC_USIZE_INIT , Ordering } ;
76
77
use std:: marker:: PhantomData ;
77
78
use std:: fmt;
@@ -81,7 +82,7 @@ use std::default::Default;
81
82
#[ repr( C ) ]
82
83
pub struct AtomicRef < ' a , T : ' a > {
83
84
data : AtomicUsize ,
84
- _marker : PhantomData < & ' a T > ,
85
+ _marker : PhantomData < Mutex < & ' a T > > ,
85
86
}
86
87
87
88
/// You will probably never need to use this type. It exists mostly for internal
You can’t perform that action at this time.
0 commit comments