mirror of https://github.com/fafhrd91/actix-net
				
				
				
			clippy
This commit is contained in:
		
							parent
							
								
									b9455d2ca9
								
							
						
					
					
						commit
						98c37fe47d
					
				|  | @ -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 | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -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()) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue