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())