Skip to content

Commit c49051d

Browse files
joshtriplettFishrock123
authored andcommitted
Make Body::chain not depend on the async-std feature
1 parent 339b633 commit c49051d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/body.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,6 @@ impl Body {
441441
/// assert_eq!(&body.into_string().await.unwrap(), "Hello Nori");
442442
/// # Ok(()) }) }
443443
/// ```
444-
#[cfg(feature = "async-std")]
445444
pub fn chain(self, other: Body) -> Self {
446445
let mime = if self.mime == other.mime {
447446
self.mime.clone()
@@ -455,7 +454,7 @@ impl Body {
455454
Self {
456455
mime,
457456
length,
458-
reader: Box::new(async_std::io::ReadExt::chain(self, other)),
457+
reader: Box::new(futures_lite::io::AsyncReadExt::chain(self, other)),
459458
bytes_read: 0,
460459
}
461460
}

0 commit comments

Comments
 (0)