File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -326,9 +326,9 @@ impl<'a> DerefMut for MaybeUninitSlice<'a> {
326
326
#[ derive( Debug , Clone ) ]
327
327
pub struct TcpKeepalive {
328
328
time : Option < Duration > ,
329
- #[ cfg_attr ( target_os = "redox" , allow ( dead_code ) ) ]
329
+ #[ cfg ( not ( any ( target_os = "redox" , target_os = "solaris" ) ) ) ]
330
330
interval : Option < Duration > ,
331
- #[ cfg_attr ( target_os = "redox" , allow ( dead_code ) ) ]
331
+ #[ cfg ( not ( any ( target_os = "redox" , target_os = "solaris" , target_os = "windows" ) ) ) ]
332
332
retries : Option < u32 > ,
333
333
}
334
334
@@ -337,7 +337,9 @@ impl TcpKeepalive {
337
337
pub const fn new ( ) -> TcpKeepalive {
338
338
TcpKeepalive {
339
339
time : None ,
340
+ #[ cfg( not( any( target_os = "redox" , target_os = "solaris" ) ) ) ]
340
341
interval : None ,
342
+ #[ cfg( not( any( target_os = "redox" , target_os = "solaris" , target_os = "windows" ) ) ) ]
341
343
retries : None ,
342
344
}
343
345
}
You can’t perform that action at this time.
0 commit comments