Skip to content

Commit

Permalink
Add inline attribute to default
Browse files Browse the repository at this point in the history
  • Loading branch information
showier-drastic committed Oct 10, 2024
1 parent 8079ce4 commit 89d692b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edge-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ impl<const N: usize> RequestHeaders<'_, N> {
}

impl<'b, const N: usize> Default for RequestHeaders<'b, N> {
#[inline(always)]
fn default() -> Self {
Self {
http11: true,
Expand Down Expand Up @@ -778,6 +779,7 @@ impl<const N: usize> ResponseHeaders<'_, N> {
}

impl<'b, const N: usize> Default for ResponseHeaders<'b, N> {
#[inline(always)]
fn default() -> Self {
Self {
http11: true,
Expand Down

0 comments on commit 89d692b

Please sign in to comment.