Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d9804f commit 8d2c680Copy full SHA for 8d2c680
stdlib/src/socket.rs
@@ -2182,8 +2182,6 @@ mod _socket {
2182
))]
2183
#[pyfunction]
2184
fn if_nameindex(vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
2185
- use windows_sys::Win32::NetworkManagement::Ndis::NET_LUID_LH;
2186
-
2187
#[cfg(not(windows))]
2188
{
2189
let list = nix::net::if_::if_nameindex()
@@ -2202,6 +2200,7 @@ mod _socket {
2202
2200
#[cfg(windows)]
2203
2201
2204
use std::ptr;
+ use windows_sys::Win32::NetworkManagement::Ndis::NET_LUID_LH;
2205
2206
let table = MibTable::get_raw().map_err(|err| err.into_pyexception(vm))?;
2207
let list = table.as_slice().iter().map(|entry| {
0 commit comments