about summary refs log tree commit diff
path: root/library/std/src/sys/pal/windows/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-10-04 12:31:27 +0200
committerGitHub <noreply@github.com>2025-10-04 12:31:27 +0200
commit97554669dd4cd5f4a425e515e0f5632955824005 (patch)
tree5e1b4fd00cb48b60792a114f04de7ee19492d59c /library/std/src/sys/pal/windows/mod.rs
parent82ccda32f48d52d1cadd0eb7826e72bf5f83bf9b (diff)
parent3534594029ed1495290e013647a1f53da561f7f1 (diff)
downloadrust-97554669dd4cd5f4a425e515e0f5632955824005.tar.gz
rust-97554669dd4cd5f4a425e515e0f5632955824005.zip
Rollup merge of #147190 - joboet:sys-net-cleanup, r=hkBst,tgross35
std: `sys::net` cleanups

This PR contains three improvements to the socket-based networking implementation (aa1263e7684341a73b600eaf0bbc70067e196243 is just to add the now missing `unsafe`). Best reviewed commit-by-commit.
Diffstat (limited to 'library/std/src/sys/pal/windows/mod.rs')
-rw-r--r--library/std/src/sys/pal/windows/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/windows/mod.rs b/library/std/src/sys/pal/windows/mod.rs
index 18ab3498267..a5f06008013 100644
--- a/library/std/src/sys/pal/windows/mod.rs
+++ b/library/std/src/sys/pal/windows/mod.rs
@@ -58,7 +58,7 @@ pub unsafe fn init(_argc: isize, _argv: *const *const u8, _sigpipe: u8) {
 // SAFETY: must be called only once during runtime cleanup.
 // NOTE: this is not guaranteed to run, for example when the program aborts.
 pub unsafe fn cleanup() {
-    crate::sys::net::cleanup();
+    winsock::cleanup();
 }
 
 #[inline]