Skip to content

Commit f65a9b1

Browse files
committed
Update utils.rs
1 parent 7082980 commit f65a9b1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/utils.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
use std::io::{Cursor, Error as IoError};
33
#[cfg(any(target_os = "freebsd", target_os = "macos", target_os = "netbsd"))]
44
use std::net::{Ipv4Addr, Ipv6Addr};
5+
#[cfg(any(target_os = "freebsd", target_os = "linux", target_os = "netbsd"))]
6+
use std::path::Path;
57
#[cfg(target_os = "linux")]
68
use std::{collections::HashSet, fs::OpenOptions};
79
#[cfg(any(target_os = "freebsd", target_os = "linux", target_os = "netbsd"))]
@@ -12,11 +14,6 @@ use std::{
1214
};
1315
#[cfg(not(target_os = "windows"))]
1416
use std::{net::IpAddr, process::Command};
15-
#[cfg(any(target_os = "freebsd", target_os = "linux", target_os = "netbsd"))]
16-
use std::{
17-
net::{SocketAddr, ToSocketAddrs},
18-
path::Path,
19-
};
2017

2118
#[cfg(not(target_os = "windows"))]
2219
use crate::Peer;

0 commit comments

Comments
 (0)