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 25f96a4 commit 958ff8eCopy full SHA for 958ff8e
1 file changed
src/discovery.rs
@@ -8,8 +8,6 @@ use netdev::Interface;
8
use serde::{Deserialize, Serialize};
9
use socket2::{Domain, Protocol, Socket, Type};
10
use std::net::{Ipv6Addr, SocketAddr};
11
-#[cfg(windows)]
12
-use std::os::windows::prelude::AsRawSocket;
13
use tokio::net::UdpSocket;
14
15
/// `ff12::a1:9aca` as per ASCOM Alpaca specification.
@@ -48,6 +46,7 @@ pub(crate) fn bind_socket(addr: SocketAddr) -> eyre::Result<UdpSocket> {
48
46
#[cfg(windows)]
49
47
{
50
use eyre::Context;
+ use std::os::windows::io::AsRawSocket;
51
use windows_sys::Win32::Networking::WinSock::{
52
SIO_UDP_CONNRESET, WSAGetLastError, ioctlsocket,
53
};
0 commit comments