Skip to content

Commit d3a1b30

Browse files
committed
Remove static lifetime bound on WebSocketStream
1 parent ef05a54 commit d3a1b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ratchet_core/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ use tokio::io::{AsyncRead, AsyncWrite};
6868
pub(crate) type Request = http::Request<()>;
6969

7070
/// A stream representing a WebSocket connection.
71-
pub trait WebSocketStream: AsyncRead + AsyncWrite + Send + Unpin + 'static {}
72-
impl<S> WebSocketStream for S where S: AsyncRead + AsyncWrite + Send + Unpin + 'static {}
71+
pub trait WebSocketStream: AsyncRead + AsyncWrite + Send + Unpin {}
72+
impl<S> WebSocketStream for S where S: AsyncRead + AsyncWrite + Send + Unpin {}
7373

7474
/// Provides utilities for handling WebSocket handshakes on the server side.
7575
///

0 commit comments

Comments
 (0)