Skip to content

Commit 97623d9

Browse files
committed
CI doesn't check for rustfmt but I'm tired of picking stuff
1 parent 5b234c3 commit 97623d9

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

src/sys/socket/mod.rs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,20 @@ pub use self::addr::{SockaddrLike, SockaddrStorage};
3939
pub use self::addr::{AddressFamily, UnixAddr};
4040
#[cfg(not(solarish))]
4141
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+
)))]
4348
#[cfg(feature = "net")]
4449
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+
))]
4656
#[cfg(feature = "net")]
4757
pub use self::addr::{SockaddrIn, SockaddrIn6};
4858

@@ -851,17 +861,17 @@ pub enum ControlMessageOwned {
851861
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
852862
Ipv6HopLimit(i32),
853863

854-
/// Retrieve the DSCP (ToS) header field of the incoming IPv4 packet.
864+
/// Retrieve the DSCP (ToS) header field of the incoming IPv4 packet.
855865
#[cfg(any(linux_android, target_os = "freebsd"))]
856866
#[cfg(feature = "net")]
857867
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
858868
Ipv4Tos(u8),
859869

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.
861871
#[cfg(any(linux_android, target_os = "freebsd"))]
862872
#[cfg(feature = "net")]
863873
#[cfg_attr(docsrs, doc(cfg(feature = "net")))]
864-
Ipv6TClass(i32),
874+
Ipv6TClass(i32),
865875

866876
/// UDP Generic Receive Offload (GRO) allows receiving multiple UDP
867877
/// packets from a single sender.
@@ -1119,7 +1129,7 @@ impl ControlMessageOwned {
11191129
(_, _) => {
11201130
let sl = unsafe { std::slice::from_raw_parts(p, len) };
11211131
let ucmsg = UnknownCmsg {
1122-
cmsg_header: *header,
1132+
cmsg_header: *header,
11231133
data_bytes: Vec::<u8>::from(sl),
11241134
};
11251135
ControlMessageOwned::Unknown(ucmsg)
@@ -2520,4 +2530,3 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
25202530
Errno::result(shutdown(df, how)).map(drop)
25212531
}
25222532
}
2523-

0 commit comments

Comments
 (0)