@@ -39,10 +39,20 @@ pub use self::addr::{SockaddrLike, SockaddrStorage};
39
39
pub use self :: addr:: { AddressFamily , UnixAddr } ;
40
40
#[ cfg( not( solarish) ) ]
41
41
pub use self :: addr:: { AddressFamily , UnixAddr } ;
42
- #[ cfg( not( any( solarish, target_os = "haiku" , target_os = "hurd" , target_os = "redox" ) ) ) ]
42
+ #[ cfg( not( any(
43
+ solarish,
44
+ target_os = "haiku" ,
45
+ target_os = "hurd" ,
46
+ target_os = "redox"
47
+ ) ) ) ]
43
48
#[ cfg( feature = "net" ) ]
44
49
pub use self :: addr:: { LinkAddr , SockaddrIn , SockaddrIn6 } ;
45
- #[ cfg( any( solarish, target_os = "haiku" , target_os = "hurd" , target_os = "redox" ) ) ]
50
+ #[ cfg( any(
51
+ solarish,
52
+ target_os = "haiku" ,
53
+ target_os = "hurd" ,
54
+ target_os = "redox"
55
+ ) ) ]
46
56
#[ cfg( feature = "net" ) ]
47
57
pub use self :: addr:: { SockaddrIn , SockaddrIn6 } ;
48
58
@@ -851,17 +861,17 @@ pub enum ControlMessageOwned {
851
861
#[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
852
862
Ipv6HopLimit ( i32 ) ,
853
863
854
- /// Retrieve the DSCP (ToS) header field of the incoming IPv4 packet.
864
+ /// Retrieve the DSCP (ToS) header field of the incoming IPv4 packet.
855
865
#[ cfg( any( linux_android, target_os = "freebsd" ) ) ]
856
866
#[ cfg( feature = "net" ) ]
857
867
#[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
858
868
Ipv4Tos ( u8 ) ,
859
869
860
- /// Retrieve the DSCP (Traffic Class) header field of the incoming IPv6 packet.
870
+ /// Retrieve the DSCP (Traffic Class) header field of the incoming IPv6 packet.
861
871
#[ cfg( any( linux_android, target_os = "freebsd" ) ) ]
862
872
#[ cfg( feature = "net" ) ]
863
873
#[ cfg_attr( docsrs, doc( cfg( feature = "net" ) ) ) ]
864
- Ipv6TClass ( i32 ) ,
874
+ Ipv6TClass ( i32 ) ,
865
875
866
876
/// UDP Generic Receive Offload (GRO) allows receiving multiple UDP
867
877
/// packets from a single sender.
@@ -1119,7 +1129,7 @@ impl ControlMessageOwned {
1119
1129
( _, _) => {
1120
1130
let sl = unsafe { std:: slice:: from_raw_parts( p, len) } ;
1121
1131
let ucmsg = UnknownCmsg {
1122
- cmsg_header: * header,
1132
+ cmsg_header: * header,
1123
1133
data_bytes: Vec :: <u8 >:: from( sl) ,
1124
1134
} ;
1125
1135
ControlMessageOwned :: Unknown ( ucmsg)
@@ -2520,4 +2530,3 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
2520
2530
Errno :: result ( shutdown ( df, how) ) . map ( drop)
2521
2531
}
2522
2532
}
2523
-
0 commit comments