Skip to content

Commit

Permalink
Add constructor for RequestHead (#319)
Browse files Browse the repository at this point in the history
Since RequestHead is non-exhaustive, to construct it I need a
constructor in the defining crate.
  • Loading branch information
benwis authored Jul 1, 2024
1 parent f55913f commit 55ede4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
*.snap
trace-*.json
/.cache/
/docs/api_reference/
/docs/api_reference/
.direnv/
1 change: 0 additions & 1 deletion libs/pavex/src/request/request_head.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use http::{HeaderMap, Method, Uri, Version};

#[non_exhaustive]
#[derive(Debug)]
/// All the information that is transmitted as part of an HTTP request ahead of the body.
///
Expand Down

0 comments on commit 55ede4d

Please sign in to comment.