Skip to content

Commit

Permalink
feat(ext): implement From ReasonPhrase for Bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Apr 15, 2024
1 parent 6aee2e6 commit dc27043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ext/h1_reason_phrase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ impl TryFrom<Bytes> for ReasonPhrase {
}
}

impl Into<Bytes> for ReasonPhrase {
fn into(self) -> Bytes {
self.0
impl From<ReasonPhrase> for Bytes {
fn from(reason: ReasonPhrase) -> Self {
reason.0
}
}

Expand Down

1 comment on commit dc27043

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'end_to_end'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: dc27043 Previous: 6aee2e6 Ratio
http2_parallel_x10_req_10kb_100_chunks_adaptive_window 24019781 ns/iter (± 9319904) 7845818 ns/iter (± 103057) 3.06

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.