style(lib): address most clippy lints
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							0f13719873
						
					
				
				
					commit
					0eaf304644
				
			| @@ -489,8 +489,8 @@ where | ||||
|             ProtoServer::H1(h1) => { | ||||
|                 let (io, read_buf, dispatch) = h1.into_inner(); | ||||
|                 Some(Parts { | ||||
|                     io: io, | ||||
|                     read_buf: read_buf, | ||||
|                     io, | ||||
|                     read_buf, | ||||
|                     service: dispatch.into_service(), | ||||
|                     _inner: (), | ||||
|                 }) | ||||
| @@ -522,7 +522,7 @@ where | ||||
|                 ProtoServer::H2(ref mut h2) => return Pin::new(h2).poll(cx).map_ok(|_| ()), | ||||
|             }; | ||||
|             match ready!(polled) { | ||||
|                 Ok(x) => return Poll::Ready(Ok(x)), | ||||
|                 Ok(()) => return Poll::Ready(Ok(())), | ||||
|                 Err(e) => match *e.kind() { | ||||
|                     Kind::Parse(Parse::VersionH2) if self.fallback.to_h2() => { | ||||
|                         self.upgrade_h2(); | ||||
|   | ||||
| @@ -35,7 +35,7 @@ impl AddrIncoming { | ||||
|         let addr = listener.local_addr().map_err(crate::Error::new_listen)?; | ||||
|         Ok(AddrIncoming { | ||||
|             listener, | ||||
|             addr: addr, | ||||
|             addr, | ||||
|             sleep_on_errors: true, | ||||
|             tcp_keepalive_timeout: None, | ||||
|             tcp_nodelay: false, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user