File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ use winapi::um::minwinbase::OVERLAPPED;
29
29
30
30
#[ derive( Debug ) ]
31
31
struct AfdGroup {
32
+ #[ cfg_attr( not( feature = "net" ) , allow( dead_code) ) ]
32
33
cp : Arc < CompletionPort > ,
33
34
afd_group : Mutex < Vec < Arc < Afd > > > ,
34
35
}
@@ -93,7 +94,6 @@ pub struct SockState {
93
94
poll_info : AfdPollInfo ,
94
95
afd : Arc < Afd > ,
95
96
96
- raw_socket : RawSocket ,
97
97
base_socket : RawSocket ,
98
98
99
99
user_evts : u32 ,
@@ -107,7 +107,7 @@ pub struct SockState {
107
107
// last raw os error
108
108
error : Option < i32 > ,
109
109
110
- pinned : PhantomPinned ,
110
+ _pinned : PhantomPinned ,
111
111
}
112
112
113
113
impl SockState {
@@ -263,15 +263,14 @@ cfg_io_source! {
263
263
iosb: IoStatusBlock :: zeroed( ) ,
264
264
poll_info: AfdPollInfo :: zeroed( ) ,
265
265
afd,
266
- raw_socket,
267
266
base_socket: get_base_socket( raw_socket) ?,
268
267
user_evts: 0 ,
269
268
pending_evts: 0 ,
270
269
user_data: 0 ,
271
270
poll_status: SockPollStatus :: Idle ,
272
271
delete_pending: false ,
273
272
error: None ,
274
- pinned : PhantomPinned ,
273
+ _pinned : PhantomPinned ,
275
274
} )
276
275
}
277
276
You can’t perform that action at this time.
0 commit comments