File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ impl Body {
219
219
/// assert_eq!(&body.into_string().await.unwrap(), "Hello Nori");
220
220
/// # Ok(()) }) }
221
221
/// ```
222
- pub async fn into_string ( mut self ) -> io :: Result < String > {
222
+ pub async fn into_string ( mut self ) -> crate :: Result < String > {
223
223
let mut result = String :: with_capacity ( self . len ( ) . unwrap_or ( 0 ) ) ;
224
224
self . read_to_string ( & mut result) . await ?;
225
225
Ok ( result)
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ impl Request {
304
304
/// assert_eq!(&req.body_string().await.unwrap(), "Hello Nori");
305
305
/// # Ok(()) }) }
306
306
/// ```
307
- pub async fn body_string ( self ) -> io :: Result < String > {
307
+ pub async fn body_string ( self ) -> crate :: Result < String > {
308
308
self . body . into_string ( ) . await
309
309
}
310
310
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ impl Response {
261
261
/// assert_eq!(&res.body_string().await.unwrap(), "Hello Nori");
262
262
/// # Ok(()) }) }
263
263
/// ```
264
- pub async fn body_string ( self ) -> io :: Result < String > {
264
+ pub async fn body_string ( self ) -> crate :: Result < String > {
265
265
self . body . into_string ( ) . await
266
266
}
267
267
You can’t perform that action at this time.
0 commit comments