mirror of https://github.com/fafhrd91/actix-web
clean up
This commit is contained in:
parent
966875b349
commit
d284875391
|
@ -78,6 +78,6 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn either_body_works() {
|
||||
let body = EitherBody::new(());
|
||||
let _body = EitherBody::new(());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use std::{
|
||||
cell::{Ref, RefMut},
|
||||
error::Error as StdError,
|
||||
fmt,
|
||||
future::Future,
|
||||
mem,
|
||||
|
@ -8,7 +9,7 @@ use std::{
|
|||
};
|
||||
|
||||
use actix_http::{
|
||||
body::{AnyBody, MessageBody},
|
||||
body::{AnyBody, BoxBody, MessageBody},
|
||||
http::{header::HeaderMap, StatusCode},
|
||||
Extensions, Response, ResponseHead,
|
||||
};
|
||||
|
@ -229,7 +230,7 @@ impl<B> HttpResponse<B> {
|
|||
|
||||
// TODO: into_body equivalent
|
||||
|
||||
pub(crate) fn into_boxed_body(self) -> HttpResponse<BoxBody>
|
||||
pub fn into_boxed_body(self) -> HttpResponse<BoxBody>
|
||||
where
|
||||
B: MessageBody + 'static,
|
||||
B::Error: Into<Box<dyn StdError + 'static>>,
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::rc::Rc;
|
|||
use std::{fmt, net};
|
||||
|
||||
use actix_http::{
|
||||
body::{AnyBody, BoxBody, MessageBody},
|
||||
body::{AnyBody, MessageBody},
|
||||
http::{HeaderMap, Method, StatusCode, Uri, Version},
|
||||
Extensions, HttpMessage, Payload, PayloadStream, RequestHead, Response, ResponseHead,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue