File tree Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Original file line number Diff line number Diff line change @@ -307,13 +307,7 @@ impl Protocol {
307
307
/// Protocol corresponding to `MPTCP`.
308
308
pub const MPTCP : Protocol = Protocol ( sys:: IPPROTO_MPTCP ) ;
309
309
310
- #[ cfg( all(
311
- feature = "all" ,
312
- any(
313
- target_os = "freebsd" ,
314
- target_os = "linux" ,
315
- )
316
- ) ) ]
310
+ #[ cfg( all( feature = "all" , any( target_os = "freebsd" , target_os = "linux" ) ) ) ]
317
311
/// Protocol corresponding to `SCTP`.
318
312
pub const SCTP : Protocol = Protocol ( sys:: IPPROTO_SCTP ) ;
319
313
}
Original file line number Diff line number Diff line change @@ -65,13 +65,7 @@ pub(crate) use libc::{SOCK_DGRAM, SOCK_STREAM};
65
65
// Used in `Protocol`.
66
66
#[ cfg( target_os = "linux" ) ]
67
67
pub ( crate ) use libc:: IPPROTO_MPTCP ;
68
- #[ cfg( all(
69
- feature = "all" ,
70
- any(
71
- target_os = "freebsd" ,
72
- target_os = "linux" ,
73
- )
74
- ) ) ]
68
+ #[ cfg( all( feature = "all" , any( target_os = "freebsd" , target_os = "linux" ) ) ) ]
75
69
pub ( crate ) use libc:: IPPROTO_SCTP ;
76
70
pub ( crate ) use libc:: { IPPROTO_ICMP , IPPROTO_ICMPV6 , IPPROTO_TCP , IPPROTO_UDP } ;
77
71
// Used in `SockAddr`.
@@ -398,13 +392,7 @@ impl_debug!(
398
392
libc:: IPPROTO_UDP ,
399
393
#[ cfg( target_os = "linux" ) ]
400
394
libc:: IPPROTO_MPTCP ,
401
- #[ cfg( all(
402
- feature = "all" ,
403
- any(
404
- target_os = "freebsd" ,
405
- target_os = "linux" ,
406
- )
407
- ) ) ]
395
+ #[ cfg( all( feature = "all" , any( target_os = "freebsd" , target_os = "linux" ) ) ) ]
408
396
libc:: IPPROTO_SCTP ,
409
397
) ;
410
398
Original file line number Diff line number Diff line change @@ -108,13 +108,7 @@ fn protocol_fmt_debug() {
108
108
( Protocol :: UDP , "IPPROTO_UDP" ) ,
109
109
#[ cfg( target_os = "linux" ) ]
110
110
( Protocol :: MPTCP , "IPPROTO_MPTCP" ) ,
111
- #[ cfg( all(
112
- feature = "all" ,
113
- any(
114
- target_os = "freebsd" ,
115
- target_os = "linux" ,
116
- )
117
- ) ) ]
111
+ #[ cfg( all( feature = "all" , any( target_os = "freebsd" , target_os = "linux" ) ) ) ]
118
112
( Protocol :: SCTP , "IPPROTO_SCTP" ) ,
119
113
( 500 . into ( ) , "500" ) ,
120
114
] ;
You can’t perform that action at this time.
0 commit comments