Skip to content

Commit a9674ba

Browse files
committed
fix
1 parent 09cc70d commit a9674ba

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

crates/cli/src/http_binder.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ use hyper_util::{
44
rt::{TokioExecutor, TokioIo},
55
server,
66
};
7+
use std::convert::Infallible;
78
use std::net::SocketAddr;
8-
use std::{convert::Infallible, path::PathBuf};
9-
use tokio::net::{TcpListener, UnixListener};
9+
#[cfg(unix)] // Unix sockets
10+
use std::path::PathBuf;
11+
use tokio::net::TcpListener;
12+
#[cfg(unix)] // Unix sockets
13+
use tokio::net::UnixListener;
1014
use tower::{Service, ServiceExt};
1115

1216
#[allow(dead_code)]

0 commit comments

Comments
 (0)