diff --git a/src/compat.rs b/src/compat.rs index 644f856..3c93b1d 100644 --- a/src/compat.rs +++ b/src/compat.rs @@ -14,7 +14,7 @@ pub(crate) enum ContextWaker { } #[derive(Debug)] -pub struct AllowStd { +pub(crate) struct AllowStd { inner: S, // We have the problem that external read operations (i.e. the Stream impl) // can trigger both read (AsyncRead) and write (AsyncWrite) operations on diff --git a/src/lib.rs b/src/lib.rs index 874d9df..751ca7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -254,7 +254,6 @@ impl WebSocketStream { impl Stream for WebSocketStream where T: AsyncRead + AsyncWrite + Unpin, - AllowStd: Read + Write, { type Item = Result; @@ -278,7 +277,6 @@ where impl Sink for WebSocketStream where T: AsyncRead + AsyncWrite + Unpin, - AllowStd: Read + Write, { type Error = WsError;