Skip to content

Commit

Permalink
fix: remove useless result
Browse files Browse the repository at this point in the history
  • Loading branch information
v0l committed Dec 12, 2024
1 parent b67ddd9 commit 2ef2b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/native/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ where
///
/// Useful for when using [hyper] or [warp] or any other HTTP server
#[inline]
pub async fn take_upgraded<S>(raw_stream: S) -> Result<WebSocketStream<S>, Error>
pub async fn take_upgraded<S>(raw_stream: S) -> WebSocketStream<S>
where
S: AsyncRead + AsyncWrite + Unpin,
{
Ok(WebSocketStream::from_raw_socket(raw_stream, Role::Server, None).await)
WebSocketStream::from_raw_socket(raw_stream, Role::Server, None).await
}

0 comments on commit 2ef2b4e

Please sign in to comment.