From 98c37fe47d7dc24f77ca446304440c681ff578ca Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 1 Sep 2021 20:59:54 +0100 Subject: [PATCH] clippy --- actix-tls/src/connect/connect.rs | 2 +- actix-tls/src/connect/resolve.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-tls/src/connect/connect.rs b/actix-tls/src/connect/connect.rs index bd4b3fdf..730486cf 100755 --- a/actix-tls/src/connect/connect.rs +++ b/actix-tls/src/connect/connect.rs @@ -19,7 +19,7 @@ pub trait Address: Unpin + 'static { impl Address for String { fn hostname(&self) -> &str { - &self + self } } diff --git a/actix-tls/src/connect/resolve.rs b/actix-tls/src/connect/resolve.rs index 0a92b9b1..335e69d8 100755 --- a/actix-tls/src/connect/resolve.rs +++ b/actix-tls/src/connect/resolve.rs @@ -164,7 +164,7 @@ impl Service> for Resolver { } Self::Custom(resolver) => { - let resolver = Rc::clone(&resolver); + let resolver = Rc::clone(resolver); ResolverFuture::LookupCustom(Box::pin(async move { let addrs = resolver .lookup(req.hostname(), req.port())