mirror of
https://github.com/actix/actix-web.git
synced 2025-02-06 14:22:21 +00:00
clippy warning
This commit is contained in:
parent
0093b7ea5a
commit
8e160ebda7
1 changed files with 2 additions and 2 deletions
|
@ -654,7 +654,7 @@ pub struct InternalError<T> {
|
||||||
|
|
||||||
enum InternalErrorType {
|
enum InternalErrorType {
|
||||||
Status(StatusCode),
|
Status(StatusCode),
|
||||||
Response(Mutex<Option<HttpResponseParts>>),
|
Response(Box<Mutex<Option<HttpResponseParts>>>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> InternalError<T> {
|
impl<T> InternalError<T> {
|
||||||
|
@ -672,7 +672,7 @@ impl<T> InternalError<T> {
|
||||||
let resp = response.into_parts();
|
let resp = response.into_parts();
|
||||||
InternalError {
|
InternalError {
|
||||||
cause,
|
cause,
|
||||||
status: InternalErrorType::Response(Mutex::new(Some(resp))),
|
status: InternalErrorType::Response(Box::new(Mutex::new(Some(resp)))),
|
||||||
backtrace: Backtrace::new(),
|
backtrace: Backtrace::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue