Skip to content

Commit

Permalink
Fix uneeded commas
Browse files Browse the repository at this point in the history
  • Loading branch information
Fancy2209 committed Dec 25, 2024
1 parent eef14eb commit ba1b193
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions tokio/src/net/tcp/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl TcpSocket {
target_os = "illumos",
target_os = "linux",
target_os = "netbsd",
target_os = "openbsd",
target_os = "openbsd"
))]
let ty = ty.nonblocking();
let inner = socket2::Socket::new(domain, ty, Some(socket2::Protocol::TCP))?;
Expand All @@ -179,7 +179,7 @@ impl TcpSocket {
target_os = "illumos",
target_os = "linux",
target_os = "netbsd",
target_os = "openbsd",
target_os = "openbsd"
)))]
inner.set_nonblocking(true)?;
Ok(TcpSocket { inner })
Expand Down Expand Up @@ -469,7 +469,7 @@ impl TcpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
)))]
#[cfg_attr(
docsrs,
Expand All @@ -478,7 +478,7 @@ impl TcpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
))))
)]
pub fn tos(&self) -> io::Result<u32> {
Expand All @@ -498,7 +498,7 @@ impl TcpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
)))]
#[cfg_attr(
docsrs,
Expand All @@ -507,7 +507,7 @@ impl TcpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
))))
)]
pub fn set_tos(&self, tos: u32) -> io::Result<()> {
Expand Down
8 changes: 4 additions & 4 deletions tokio/src/net/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ impl UdpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
)))]
#[cfg_attr(
docsrs,
Expand All @@ -1873,7 +1873,7 @@ impl UdpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
))))
)]
pub fn tos(&self) -> io::Result<u32> {
Expand All @@ -1893,7 +1893,7 @@ impl UdpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
)))]
#[cfg_attr(
docsrs,
Expand All @@ -1902,7 +1902,7 @@ impl UdpSocket {
target_os = "redox",
target_os = "solaris",
target_os = "illumos",
target_os = "haiku",
target_os = "haiku"
))))
)]
pub fn set_tos(&self, tos: u32) -> io::Result<()> {
Expand Down

0 comments on commit ba1b193

Please sign in to comment.