From 8e160ebda777dfefd14c66e4619e5938046d1c35 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 21 Jun 2018 11:49:36 +0600 Subject: [PATCH] clippy warning --- src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index 3141ad2a3..6d8d3b042 100644 --- a/src/error.rs +++ b/src/error.rs @@ -654,7 +654,7 @@ pub struct InternalError { enum InternalErrorType { Status(StatusCode), - Response(Mutex>), + Response(Box>>), } impl InternalError { @@ -672,7 +672,7 @@ impl InternalError { 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(), } }