Skip to content

Commit 958ff8e

Browse files
committed
Group Windows imports together
1 parent 25f96a4 commit 958ff8e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/discovery.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ use netdev::Interface;
88
use serde::{Deserialize, Serialize};
99
use socket2::{Domain, Protocol, Socket, Type};
1010
use std::net::{Ipv6Addr, SocketAddr};
11-
#[cfg(windows)]
12-
use std::os::windows::prelude::AsRawSocket;
1311
use tokio::net::UdpSocket;
1412

1513
/// `ff12::a1:9aca` as per ASCOM Alpaca specification.
@@ -48,6 +46,7 @@ pub(crate) fn bind_socket(addr: SocketAddr) -> eyre::Result<UdpSocket> {
4846
#[cfg(windows)]
4947
{
5048
use eyre::Context;
49+
use std::os::windows::io::AsRawSocket;
5150
use windows_sys::Win32::Networking::WinSock::{
5251
SIO_UDP_CONNRESET, WSAGetLastError, ioctlsocket,
5352
};

0 commit comments

Comments
 (0)