Skip to content

Commit 5fab89f

Browse files
committed
fix build warning on windows
1 parent 1a32281 commit 5fab89f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webserver/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use futures_util::stream::Stream;
3535
use futures_util::StreamExt;
3636
use std::borrow::Cow;
3737
use std::mem;
38-
use std::path::{Path, PathBuf};
38+
use std::path::PathBuf;
3939
use std::pin::Pin;
4040
use std::sync::Arc;
4141
use std::time::SystemTime;
@@ -635,7 +635,7 @@ fn bind_error(e: std::io::Error, listen_on: std::net::SocketAddr) -> anyhow::Err
635635
}
636636

637637
#[cfg(target_family = "unix")]
638-
fn bind_unix_socket_err(e: std::io::Error, unix_socket: &Path) -> anyhow::Error {
638+
fn bind_unix_socket_err(e: std::io::Error, unix_socket: &std::path::Path) -> anyhow::Error {
639639
let ctx = if e.kind() == std::io::ErrorKind::PermissionDenied {
640640
format!(
641641
"You do not have permission to bind to the UNIX socket \"{}\". \

0 commit comments

Comments
 (0)