Skip to content

Commit d615d2f

Browse files
committed
std: call WinSock cleanup function directly instead of through its reexport
1 parent a2db928 commit d615d2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/sys/net/connection/socket/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub(super) mod netc {
111111
}
112112
}
113113

114-
pub use crate::sys::pal::winsock::{cleanup, cvt, cvt_gai, cvt_r, startup as init};
114+
pub use crate::sys::pal::winsock::{cvt, cvt_gai, cvt_r, startup as init};
115115

116116
#[expect(missing_debug_implementations)]
117117
pub struct Socket(OwnedSocket);

library/std/src/sys/pal/windows/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub unsafe fn init(_argc: isize, _argv: *const *const u8, _sigpipe: u8) {
5858
// SAFETY: must be called only once during runtime cleanup.
5959
// NOTE: this is not guaranteed to run, for example when the program aborts.
6060
pub unsafe fn cleanup() {
61-
crate::sys::net::cleanup();
61+
winsock::cleanup();
6262
}
6363

6464
#[inline]

0 commit comments

Comments
 (0)