1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-21 09:23:54 +00:00

clippy warning

This commit is contained in:
Nikolay Kim 2018-06-21 11:49:36 +06:00
parent 0093b7ea5a
commit 8e160ebda7

View file

@ -654,7 +654,7 @@ pub struct InternalError<T> {
enum InternalErrorType {
Status(StatusCode),
Response(Mutex<Option<HttpResponseParts>>),
Response(Box<Mutex<Option<HttpResponseParts>>>),
}
impl<T> InternalError<T> {
@ -672,7 +672,7 @@ impl<T> InternalError<T> {
let resp = response.into_parts();
InternalError {
cause,
status: InternalErrorType::Response(Mutex::new(Some(resp))),
status: InternalErrorType::Response(Box::new(Mutex::new(Some(resp)))),
backtrace: Backtrace::new(),
}
}