Skip to content

Commit

Permalink
Remove Sync requirement from reqwest::Body::wrap_stream()
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunn1313 committed Jul 17, 2024
1 parent c660535 commit 05b3cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/async_impl/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ impl Body {
#[cfg_attr(docsrs, doc(cfg(feature = "stream")))]
pub fn wrap_stream<S>(stream: S) -> Body
where
S: futures_core::stream::TryStream + Send + Sync + 'static,
S::Error: Into<Box<dyn std::error::Error + Send + Sync>>,
S: futures_core::stream::TryStream + Send + 'static,
S::Error: Into<Box<dyn std::error::Error + Send>>,
Bytes: From<S::Ok>,
{
Body::stream(stream)
Expand Down

0 comments on commit 05b3cac

Please sign in to comment.