Skip to content

Commit

Permalink
Merge pull request #1 from crlf0710/patch-1
Browse files Browse the repository at this point in the history
Fix issue with lifetime elision
  • Loading branch information
twittner authored Aug 19, 2019
2 parents d4fecc0 + 6c19faa commit 490bcd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<'a> Client<'a> {
}

/// Get back all extensions.
pub fn drain_extensions(&mut self) -> impl Iterator<Item = Box<dyn Extension + Send>> {
pub fn drain_extensions(&mut self) -> impl Iterator<Item = Box<dyn Extension + Send>> + '_ {
self.extensions.drain()
}
}
Expand Down Expand Up @@ -280,7 +280,7 @@ impl<'a> Server<'a> {
}

/// Get back all extensions.
pub fn drain_extensions(&mut self) -> impl Iterator<Item = Box<dyn Extension + Send>> {
pub fn drain_extensions(&mut self) -> impl Iterator<Item = Box<dyn Extension + Send>> + '_ {
self.extensions.drain()
}
}
Expand Down

0 comments on commit 490bcd7

Please sign in to comment.