Skip to content

Commit

Permalink
clippy fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Jan 24, 2024
1 parent f352bcc commit 8f3e494
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions http/src/h2/proto/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ where
}
}
}
header => self.pseudo.from_header(
header => self.pseudo.parse(
header,
max_header_list_size,
&mut self.is_over_size,
Expand Down Expand Up @@ -606,7 +606,7 @@ where
pub trait _Pseudo {
fn into_iter(self) -> impl Iterator<Item = super::hpack::Header<Option<HeaderName>>> + Send;

fn from_header(
fn parse(
&mut self,
header: super::hpack::Header,
max_header_list_size: usize,
Expand Down Expand Up @@ -660,7 +660,7 @@ impl _Pseudo for Pseudo {
Iter(self)
}

fn from_header(
fn parse(
&mut self,
header: super::hpack::Header,
max_header_list_size: usize,
Expand Down Expand Up @@ -728,7 +728,7 @@ impl _Pseudo for ResponsePseudo {
core::iter::once_with(move || super::hpack::Header::Status(self.status))
}

fn from_header(
fn parse(
&mut self,
header: super::hpack::Header,
max_header_list_size: usize,
Expand Down Expand Up @@ -767,7 +767,7 @@ impl _Pseudo for () {
core::iter::empty()
}

fn from_header(&mut self, _: super::hpack::Header, _: usize, _: &mut bool, _: bool, _: &mut bool, _: &mut usize) {}
fn parse(&mut self, _: super::hpack::Header, _: usize, _: &mut bool, _: bool, _: &mut bool, _: &mut usize) {}

fn as_header_size(&self) -> usize {
0
Expand Down

0 comments on commit 8f3e494

Please sign in to comment.