Skip to content

Commit

Permalink
Merge pull request #307 from adwhit/alex/no-one-expects
Browse files Browse the repository at this point in the history
crux_http: change an unwrap to an expect
  • Loading branch information
StuartHarris authored Jan 27, 2025
2 parents 78f1aaa + 2e51091 commit 51f06a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crux_http/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ impl Client {

let next = Next::new(&mw_stack, &|req, client| {
Box::pin(async move {
let req = req.into_protocol_request().await.unwrap();
let req = req
.into_protocol_request()
.await
.expect("Failed to create request");
match client.effect_sender.send(req).await {
HttpResult::Ok(res) => Ok(res.into()),
HttpResult::Err(e) => Err(e),
Expand Down

0 comments on commit 51f06a4

Please sign in to comment.