File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
- use std:: io;
2
1
#[ cfg( unix) ]
3
2
use std:: os:: fd:: OwnedFd ;
4
3
#[ cfg( windows) ]
5
4
use std:: os:: windows:: prelude:: { OwnedHandle , OwnedSocket } ;
6
5
#[ cfg( feature = "once_cell_try" ) ]
7
6
use std:: sync:: OnceLock ;
7
+ use std:: { io, marker:: PhantomData } ;
8
8
9
9
use compio_buf:: IntoInner ;
10
10
use compio_driver:: AsRawFd ;
@@ -24,6 +24,7 @@ pub struct Attacher<S> {
24
24
source : S ,
25
25
// Make it thread safe.
26
26
once : OnceLock < usize > ,
27
+ _p : PhantomData < * mut ( ) > ,
27
28
}
28
29
29
30
impl < S > Attacher < S > {
@@ -32,6 +33,7 @@ impl<S> Attacher<S> {
32
33
Self {
33
34
source,
34
35
once : OnceLock :: new ( ) ,
36
+ _p : PhantomData ,
35
37
}
36
38
}
37
39
}
@@ -120,6 +122,7 @@ impl<S: TryClone + AsRawFd> TryClone for Attacher<S> {
120
122
Self {
121
123
source,
122
124
once : self . once . clone ( ) ,
125
+ _p : PhantomData ,
123
126
}
124
127
} else {
125
128
let new_self = Self :: new ( source) ;
You can’t perform that action at this time.
0 commit comments