From 31f0345fbe4114a2659860fa65e73678874a70cf Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 7 Nov 2021 19:55:38 +0100 Subject: [PATCH] Fix issues with windows build Signed-off-by: trivernis --- mediarepo-daemon/mediarepo-socket/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediarepo-daemon/mediarepo-socket/src/lib.rs b/mediarepo-daemon/mediarepo-socket/src/lib.rs index 75cc96b..c49c0fc 100644 --- a/mediarepo-daemon/mediarepo-socket/src/lib.rs +++ b/mediarepo-daemon/mediarepo-socket/src/lib.rs @@ -7,7 +7,7 @@ use mediarepo_model::repo::Repo; use mediarepo_model::type_keys::RepoKey; use std::net::{IpAddr, SocketAddr}; use std::sync::Arc; -use tokio::net::{TcpListener, UnixListener}; +use tokio::net::TcpListener; use tokio::task::JoinHandle; mod from_model; @@ -46,6 +46,7 @@ pub fn create_unix_socket( repo: Repo, ) -> RepoResult> { use std::fs; + use tokio::net::UnixListener; if path.exists() { fs::remove_file(&path)?;