From a05222f2bec6968c6563a3da0760b862ced329b0 Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Tue, 18 Feb 2020 17:59:28 -0500 Subject: [PATCH] Generalize Reply impl for Box We had a case where we were boxing up replies, and needed them to impl `Send + Sync` to use in other code. `Box` unfortunately doesn't implement `Reply`, because the impl is too specific. This generalizes the impl of `Reply` to include any `Box` where `T: Reply + ?Sized`. --- src/reply.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reply.rs b/src/reply.rs index f4023d7cb..f736df1f3 100644 --- a/src/reply.rs +++ b/src/reply.rs @@ -289,7 +289,7 @@ pub trait Reply: BoxedReply + Send { */ } -impl Reply for Box { +impl Reply for Box { fn into_response(self) -> Response { self.boxed_into_response(Internal) }