From 859f40acfe568e713ba53266330d83c0bae67b6f Mon Sep 17 00:00:00 2001 From: Simon Vandel Sillesen Date: Mon, 18 Oct 2021 19:28:30 +0200 Subject: [PATCH] Remove seemingly unnecessary Req -> Parts -> Req conversion Note: I haven't tested this on AWS Lambda - just noticed it while reading the source. --- lambda-runtime/src/client.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/lambda-runtime/src/client.rs b/lambda-runtime/src/client.rs index 2b860e87..5e39e300 100644 --- a/lambda-runtime/src/client.rs +++ b/lambda-runtime/src/client.rs @@ -44,8 +44,6 @@ where pub(crate) async fn call(&self, req: Request) -> Result, Error> { let req = self.set_origin(req)?; - let (parts, body) = req.into_parts(); - let req = Request::from_parts(parts, body); let response = self.client.request(req).await?; Ok(response) }