Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
net: fix rustfmt reports
Signed-off-by: ADD-SP <[email protected]>
  • Loading branch information
ADD-SP committed Jul 30, 2025
commit 12fb247940e4a55425775797c2308b14dbe98f2e
46 changes: 18 additions & 28 deletions tokio/src/net/tcp/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1186,21 +1186,16 @@ impl TcpStream {
/// # Ok(())
/// # }
/// ```
#[cfg(
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
target_os = "cygwin",
)
#[cfg(any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
target_os = "cygwin",
))]
#[cfg_attr(
docsrs,
doc(cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux",)))
)]
#[cfg_attr(docsrs, doc(cfg(
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
)
)))]
pub fn quickack(&self) -> io::Result<bool> {
socket2::SockRef::from(self).tcp_quickack()
}
Expand All @@ -1226,21 +1221,16 @@ impl TcpStream {
/// # Ok(())
/// # }
/// ```
#[cfg(
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
target_os = "cygwin",
)
#[cfg(any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
target_os = "cygwin",
))]
#[cfg_attr(
docsrs,
doc(cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux",)))
)]
#[cfg_attr(docsrs, doc(cfg(
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
)
)))]
pub fn set_quickack(&self, quickack: bool) -> io::Result<()> {
socket2::SockRef::from(self).set_tcp_quickack(quickack)
}
Expand Down
Loading