Skip to content

Commit

Permalink
Move doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2424 committed Jun 1, 2024
1 parent a94b35c commit 58651a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions h3/src/proto/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ impl Iterator for HeaderIter {
}
}

//= https://www.rfc-editor.org/rfc/rfc9114#section-4.3.1
//# If these fields are present, they MUST NOT be
//# empty.
impl TryFrom<Vec<HeaderField>> for Header {
type Error = HeaderError;
fn try_from(headers: Vec<HeaderField>) -> Result<Self, Self::Error> {
Expand Down Expand Up @@ -293,6 +290,9 @@ impl Field {

Ok(match name {
b":scheme" => Field::Scheme(try_value(name, value)?),
//= https://www.rfc-editor.org/rfc/rfc9114#section-4.3.1
//# If these fields are present, they MUST NOT be
//# empty.
b":authority" => Field::Authority(try_value(name, value)?),
b":path" => Field::Path(try_value(name, value)?),
b":method" => Field::Method(
Expand Down

0 comments on commit 58651a2

Please sign in to comment.