1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-31 10:22:09 +01:00
This commit is contained in:
Rob Ede 2021-09-01 20:59:54 +01:00
parent b9455d2ca9
commit 98c37fe47d
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pub trait Address: Unpin + 'static {
impl Address for String { impl Address for String {
fn hostname(&self) -> &str { fn hostname(&self) -> &str {
&self self
} }
} }

View File

@ -164,7 +164,7 @@ impl<T: Address> Service<Connect<T>> for Resolver {
} }
Self::Custom(resolver) => { Self::Custom(resolver) => {
let resolver = Rc::clone(&resolver); let resolver = Rc::clone(resolver);
ResolverFuture::LookupCustom(Box::pin(async move { ResolverFuture::LookupCustom(Box::pin(async move {
let addrs = resolver let addrs = resolver
.lookup(req.hostname(), req.port()) .lookup(req.hostname(), req.port())