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
parent
41ddab1a54
commit
cdca82fee5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue