Skip to content

Commit 9bb7539

Browse files
Fishrock123jbr
authored andcommitted
Body: add Sync to into_reader() return bounds
Fixes: #187
1 parent 5396382 commit 9bb7539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Body {
125125
/// let body = Body::from_reader(cursor, None);
126126
/// let _ = body.into_reader();
127127
/// ```
128-
pub fn into_reader(self) -> Box<dyn BufRead + Unpin + Send + 'static> {
128+
pub fn into_reader(self) -> Box<dyn BufRead + Unpin + Send + Sync + 'static> {
129129
self.reader
130130
}
131131

0 commit comments

Comments
 (0)