Fix a unused import warning

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-11-16 22:22:33 +04:00
parent 543de41f89
commit 71e0d57efb
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,4 @@
use std::io;
use std::os::windows::io::AsRawSocket;
use windows::Win32::Foundation::{CloseHandle, HANDLE};
use windows::Win32::Networking::WinSock::{WSADuplicateSocketW, SOCKET, WSAPROTOCOL_INFOW};
use windows::Win32::System::Threading::PROCESS_ACCESS_RIGHTS;
@ -81,6 +80,7 @@ pub(crate) fn wsa_last_err() -> io::Error {
// Get the process ID of the connected peer
#[cfg(feature = "qmp")]
pub(crate) fn unix_stream_get_peer_pid(stream: &UnixStream) -> Result<u32, std::io::Error> {
use std::os::windows::io::AsRawSocket;
use windows::Win32::Networking::WinSock::{WSAIoctl, IOC_OUT, IOC_VENDOR, SOCKET_ERROR};
macro_rules! _WSAIOR {