File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ impl AsyncPollable {
40
40
}
41
41
/// Create a Future that waits for the Pollable's readiness.
42
42
pub fn wait_for ( & self ) -> WaitFor {
43
- use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
44
- static COUNTER : AtomicUsize = AtomicUsize :: new ( 0 ) ;
43
+ use std:: sync:: atomic:: { AtomicU64 , Ordering } ;
44
+ static COUNTER : AtomicU64 = AtomicU64 :: new ( 0 ) ;
45
45
let unique = COUNTER . fetch_add ( 1 , Ordering :: Relaxed ) ;
46
46
WaitFor {
47
47
waitee : Waitee {
@@ -58,7 +58,7 @@ struct Waitee {
58
58
/// This needs to be a reference counted registration, because it may outlive the AsyncPollable
59
59
/// &self that it was created from.
60
60
pollable : AsyncPollable ,
61
- unique : usize ,
61
+ unique : u64 ,
62
62
}
63
63
64
64
/// A Future that waits for the Pollable's readiness.
You can’t perform that action at this time.
0 commit comments