We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5e0b8 commit 00aa4adCopy full SHA for 00aa4ad
src/body.rs
@@ -504,7 +504,6 @@ impl Body {
504
/// assert_eq!(&body.into_string().await.unwrap(), "Hello Nori");
505
/// # Ok(()) }) }
506
/// ```
507
- #[cfg(feature = "async-std")]
508
pub fn chain(self, other: Body) -> Self {
509
let mime = if self.mime == other.mime {
510
self.mime.clone()
@@ -518,7 +517,7 @@ impl Body {
518
517
Self {
519
mime,
520
length,
521
- reader: Box::new(async_std::io::ReadExt::chain(self, other)),
+ reader: Box::new(futures_lite::io::AsyncReadExt::chain(self, other)),
522
bytes_read: 0,
523
}
524
0 commit comments