Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/cache_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl FromIterator<KnownDirective> for FromIter {

struct Fmt<'a>(&'a CacheControl);

impl<'a> fmt::Display for Fmt<'a> {
impl fmt::Display for Fmt<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let if_flag = |f: Flags, dir: Directive| {
if self.0.flags.contains(f) {
Expand Down
8 changes: 4 additions & 4 deletions src/common/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@ mod sealed {
}
pub trait Sealed {}

impl<'a> AsConnectionOption for &'a str {
impl AsConnectionOption for &str {
fn as_connection_option(&self) -> &str {
self
}
}

impl<'a> Sealed for &'a str {}
impl Sealed for &str {}

impl<'a> AsConnectionOption for &'a HeaderName {
impl AsConnectionOption for &HeaderName {
fn as_connection_option(&self) -> &str {
self.as_ref()
}
}

impl<'a> Sealed for &'a HeaderName {}
impl Sealed for &HeaderName {}

impl AsConnectionOption for HeaderName {
fn as_connection_option(&self) -> &str {
Expand Down
4 changes: 2 additions & 2 deletions src/common/content_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ mod sealed {
fn as_coding(&self) -> &str;
}

impl<'a> AsCoding for &'a str {}
impl AsCoding for &str {}

impl<'a> Sealed for &'a str {
impl Sealed for &str {
fn as_coding(&self) -> &str {
self
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/content_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl Header for ContentRange {
fn encode<E: Extend<HeaderValue>>(&self, values: &mut E) {
struct Adapter<'a>(&'a ContentRange);

impl<'a> fmt::Display for Adapter<'a> {
impl fmt::Display for Adapter<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("bytes ")?;

Expand Down
2 changes: 1 addition & 1 deletion src/common/strict_transport_security.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl Header for StrictTransportSecurity {
fn encode<E: Extend<HeaderValue>>(&self, values: &mut E) {
struct Adapter<'a>(&'a StrictTransportSecurity);

impl<'a> fmt::Display for Adapter<'a> {
impl fmt::Display for Adapter<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
if self.0.include_subdomains {
write!(f, "max-age={}; includeSubdomains", self.0.max_age)
Expand Down
2 changes: 1 addition & 1 deletion src/map_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ enum State<'a> {
Tmp,
}

impl<'a> Extend<HeaderValue> for ToValues<'a> {
impl Extend<HeaderValue> for ToValues<'_> {
fn extend<T: IntoIterator<Item = HeaderValue>>(&mut self, iter: T) {
for value in iter {
let entry = match ::std::mem::replace(&mut self.state, State::Tmp) {
Expand Down