Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Dec 25, 2023
1 parent 41426e1 commit b266eb5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions crates/shadowsocks/src/net/udp.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
//! UDP socket wrappers
use std::{
io,
net::SocketAddr,
ops::{Deref, DerefMut},
};
#[cfg(any(
target_os = "linux",
target_os = "android",
target_os = "macos",
target_os = "ios",
target_os = "freebsd"
))]
use std::io::{ErrorKind, IoSlice, IoSliceMut};
use std::{
io::{ErrorKind, IoSlice, IoSliceMut},
io,
net::SocketAddr,
ops::{Deref, DerefMut},
task::{Context as TaskContext, Poll},
};

Expand All @@ -24,7 +22,8 @@ use std::{
target_os = "ios",
target_os = "freebsd"
))]
use futures::{future, ready};
use futures::future;
use futures::ready;
use pin_project::pin_project;
#[cfg(any(
target_os = "linux",
Expand All @@ -40,9 +39,7 @@ use crate::{context::Context, relay::socks5::Address, ServerAddr};

use super::{
sys::{bind_outbound_udp_socket, create_inbound_udp_socket, create_outbound_udp_socket},
AcceptOpts,
AddrFamily,
ConnectOpts,
AcceptOpts, AddrFamily, ConnectOpts,
};

/// Message struct for `batch_send`
Expand Down

0 comments on commit b266eb5

Please sign in to comment.