diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-11-07 21:40:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 21:40:20 -0500 |
commit | ed521850af98c76698316c4aa20676973e1f9afa (patch) | |
tree | 3435ec22454c07016e620446d99c2e08ba49ae07 /runtime/ops/os/sys_info.rs | |
parent | d0212198b676066e2264666f6b728a246c16cc0d (diff) |
chore: fix windows-only clippy error (#16560)
Diffstat (limited to 'runtime/ops/os/sys_info.rs')
-rw-r--r-- | runtime/ops/os/sys_info.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/ops/os/sys_info.rs b/runtime/ops/os/sys_info.rs index f4bc6a9c6..40de7cc4b 100644 --- a/runtime/ops/os/sys_info.rs +++ b/runtime/ops/os/sys_info.rs @@ -146,6 +146,7 @@ pub fn hostname() -> String { let mut name: Vec<u16> = vec![0u16; namelen]; // Start winsock to make `GetHostNameW` work correctly // https://github.com/retep998/winapi-rs/issues/296 + // SAFETY: winapi call WINSOCKET_INIT.call_once(|| unsafe { let mut data = mem::zeroed(); let wsa_startup_result = WSAStartup(MAKEWORD(2, 2), &mut data); |