Skip to content

Commit

Permalink
replace unwraps
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Sep 24, 2024
1 parent 20a6eef commit 262e895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamic-proxy/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl ProxyClient {
Response::builder()
.status(StatusCode::GATEWAY_TIMEOUT)
.body(simple_empty_body())
.unwrap(),
.expect("Failed to build response"),
None,
));
}
Expand All @@ -73,7 +73,7 @@ impl ProxyClient {
Response::builder()
.status(StatusCode::BAD_GATEWAY)
.body(simple_empty_body())
.unwrap(),
.expect("Failed to build response"),
None,
));
}
Expand Down

0 comments on commit 262e895

Please sign in to comment.