From 52c2a078a2d2757d8db0696e5a333c5384e7123d Mon Sep 17 00:00:00 2001 From: Kotauskas Date: Wed, 12 Jun 2024 13:00:20 +0300 Subject: [PATCH] Fix build on Windows --- src/os/windows.rs | 5 ++--- src/os/windows/named_pipe/tokio/stream.rs | 3 ++- src/os/windows/unnamed_pipe/tokio.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/os/windows.rs b/src/os/windows.rs index d43f910..9fd1844 100644 --- a/src/os/windows.rs +++ b/src/os/windows.rs @@ -15,9 +15,8 @@ pub use {path_conversion::*, share_handle::*}; mod file_handle; mod limbo_pool; pub(crate) mod misc; - -#[cfg(feature = "tokio")] mod needs_flush; + #[cfg(feature = "tokio")] mod tokio_flusher; @@ -31,6 +30,6 @@ mod limbo { pub(crate) static REBURY_ERR: &str = "attempt to bury same pipe stream twice"; } -pub(crate) use {file_handle::*, misc::*, needs_flush::*, tokio_flusher::*}; +pub(crate) use {file_handle::*, misc::*, needs_flush::*}; mod c_wrappers; diff --git a/src/os/windows/named_pipe/tokio/stream.rs b/src/os/windows/named_pipe/tokio/stream.rs index 77cb2b5..0754b32 100644 --- a/src/os/windows/named_pipe/tokio/stream.rs +++ b/src/os/windows/named_pipe/tokio/stream.rs @@ -12,7 +12,8 @@ use crate::os::windows::{ stream::{pipe_mode, PipeModeTag}, MaybeArc, }, - NeedsFlush, TokioFlusher, + tokio_flusher::TokioFlusher, + NeedsFlush, }; use std::{io, marker::PhantomData}; use tokio::net::windows::named_pipe::{ diff --git a/src/os/windows/unnamed_pipe/tokio.rs b/src/os/windows/unnamed_pipe/tokio.rs index 51aeb61..268a8ce 100644 --- a/src/os/windows/unnamed_pipe/tokio.rs +++ b/src/os/windows/unnamed_pipe/tokio.rs @@ -6,9 +6,9 @@ use crate::{ tokio::{send_off, Corpse}, LIMBO_ERR, REBURY_ERR, }, + tokio_flusher::TokioFlusher, unnamed_pipe::CreationOptions, winprelude::*, - TokioFlusher, }, unnamed_pipe::{ tokio::{Recver as PubRecver, Sender as PubSender},