Skip to content

Commit

Permalink
cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Kulkarni committed Feb 14, 2025
1 parent 6c1b6d8 commit 93ef34b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ trivial_impl_to_proxy_addrs!((Ipv6Addr, u16));
trivial_impl_to_proxy_addrs!(SocketAddrV4);
trivial_impl_to_proxy_addrs!(SocketAddrV6);

#[allow(clippy::needless_lifetimes)]
impl<'a> ToProxyAddrs for &'a [SocketAddr] {
type Output = ProxyAddrsStream;

Expand All @@ -65,6 +66,7 @@ impl ToProxyAddrs for str {
}
}

#[allow(clippy::needless_lifetimes)]
impl<'a> ToProxyAddrs for (&'a str, u16) {
type Output = ProxyAddrsStream;

Expand All @@ -73,6 +75,7 @@ impl<'a> ToProxyAddrs for (&'a str, u16) {
}
}

#[allow(clippy::needless_lifetimes)]
impl<'a, T: ToProxyAddrs + ?Sized> ToProxyAddrs for &'a T {
type Output = T::Output;

Expand Down

0 comments on commit 93ef34b

Please sign in to comment.