Skip to content

Commit

Permalink
Less explicit lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
LemmingAvalanche committed Oct 15, 2021
1 parent cd4c2db commit e450945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/message.rs
Expand Up @@ -40,7 +40,7 @@ pub struct MessageTrailers {
_marker: marker::PhantomData<c_char>,
}

impl<'pair> MessageTrailers {
impl MessageTrailers {
fn new() -> MessageTrailers {
crate::init();
unsafe {
Expand All @@ -52,7 +52,7 @@ impl<'pair> MessageTrailers {
}
}
/// Create a borrowed iterator.
pub fn iter(&'pair self) -> MessageTrailersIterator<'pair> {
pub fn iter(&self) -> MessageTrailersIterator<'_> {
MessageTrailersIterator {
trailers: self,
range: Range {
Expand Down

0 comments on commit e450945

Please sign in to comment.