From d284875391e5239f170b94941434e1ce552acb29 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 24 Nov 2021 14:20:12 +0000 Subject: [PATCH] clean up --- actix-http/src/body/either.rs | 2 +- src/response/response.rs | 5 +++-- src/service.rs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/actix-http/src/body/either.rs b/actix-http/src/body/either.rs index ba50ff672..418d3a696 100644 --- a/actix-http/src/body/either.rs +++ b/actix-http/src/body/either.rs @@ -78,6 +78,6 @@ mod tests { #[test] fn either_body_works() { - let body = EitherBody::new(()); + let _body = EitherBody::new(()); } } diff --git a/src/response/response.rs b/src/response/response.rs index 64673340b..1b8925617 100644 --- a/src/response/response.rs +++ b/src/response/response.rs @@ -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 HttpResponse { // TODO: into_body equivalent - pub(crate) fn into_boxed_body(self) -> HttpResponse + pub fn into_boxed_body(self) -> HttpResponse where B: MessageBody + 'static, B::Error: Into>, diff --git a/src/service.rs b/src/service.rs index fbbb889bc..80af342ab 100644 --- a/src/service.rs +++ b/src/service.rs @@ -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, };