mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-28 12:10:37 +02:00
chore(tls): clippy
This commit is contained in:
@ -118,6 +118,7 @@ impl<R: Host> ConnectInfo<R> {
|
||||
/// let mut addrs = conn.addrs();
|
||||
/// assert_eq!(addrs.next().unwrap(), addr);
|
||||
/// ```
|
||||
#[allow(clippy::implied_bounds_in_impls)]
|
||||
pub fn addrs(
|
||||
&self,
|
||||
) -> impl Iterator<Item = SocketAddr>
|
||||
@ -149,6 +150,7 @@ impl<R: Host> ConnectInfo<R> {
|
||||
/// let mut addrs = conn.take_addrs();
|
||||
/// assert_eq!(addrs.next().unwrap(), addr);
|
||||
/// ```
|
||||
#[allow(clippy::implied_bounds_in_impls)]
|
||||
pub fn take_addrs(
|
||||
&mut self,
|
||||
) -> impl Iterator<Item = SocketAddr>
|
||||
|
@ -1,8 +1,6 @@
|
||||
use http as http_02;
|
||||
|
||||
use super::Host;
|
||||
|
||||
impl Host for http_02::Uri {
|
||||
impl Host for http_0_2::Uri {
|
||||
fn hostname(&self) -> &str {
|
||||
self.host().unwrap_or("")
|
||||
}
|
||||
|
Reference in New Issue
Block a user