fix: Remove an unnecessary conversion

As found by the identity_conversion clippy lint. Clippy was warning
about this on master, but warnings didn't fail the build until a commit
I'm adding in this PR.
pull/24376/head
Carol (Nichols || Goulding) 2020-02-17 16:49:48 -05:00
parent 41ddab1a54
commit cdca82fee5
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ async fn service(req: hyper::Request<Body>, app: Arc<App>) -> http::Result<hyper
match response {
Ok(body) => Ok(hyper::Response::builder()
.body(body.into())
.body(body)
.expect("Should have been able to construct a response")),
Err(e) => {
let json = serde_json::json!({"error": e.to_string()}).to_string();