File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -327,10 +327,16 @@ impl<'a> DerefMut for MaybeUninitSlice<'a> {
327
327
/// See [`Socket::set_tcp_keepalive`].
328
328
#[ derive( Debug , Clone ) ]
329
329
pub struct TcpKeepalive {
330
+ #[ cfg_attr( target_os = "openbsd" , allow( dead_code) ) ]
330
331
time : Option < Duration > ,
331
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" ) ) ) ]
332
+ #[ cfg( not( any( target_os = "openbsd" , target_os = " redox", target_os = "solaris" ) ) ) ]
332
333
interval : Option < Duration > ,
333
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" , target_os = "windows" ) ) ) ]
334
+ #[ cfg( not( any(
335
+ target_os = "openbsd" ,
336
+ target_os = "redox" ,
337
+ target_os = "solaris" ,
338
+ target_os = "windows"
339
+ ) ) ) ]
334
340
retries : Option < u32 > ,
335
341
}
336
342
@@ -339,9 +345,14 @@ impl TcpKeepalive {
339
345
pub const fn new ( ) -> TcpKeepalive {
340
346
TcpKeepalive {
341
347
time : None ,
342
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" ) ) ) ]
348
+ #[ cfg( not( any( target_os = "openbsd" , target_os = " redox", target_os = "solaris" ) ) ) ]
343
349
interval : None ,
344
- #[ cfg( not( any( target_os = "redox" , target_os = "solaris" , target_os = "windows" ) ) ) ]
350
+ #[ cfg( not( any(
351
+ target_os = "openbsd" ,
352
+ target_os = "redox" ,
353
+ target_os = "solaris" ,
354
+ target_os = "windows"
355
+ ) ) ) ]
345
356
retries : None ,
346
357
}
347
358
}
You can’t perform that action at this time.
0 commit comments