style(lib): address clippy code style warnings
* Remove unnecessary return statements. * Combine identical `match` arms. * Collapse nested conditional. * Use `assert_ne` where applicable. * Lifetime elision.
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							5d19ef88b4
						
					
				
				
					commit
					1059eb349a
				
			| @@ -128,11 +128,11 @@ impl From<FromUtf8Error> for Error { | ||||
| impl From<httparse::Error> for Error { | ||||
|     fn from(err: httparse::Error) -> Error { | ||||
|         match err { | ||||
|             httparse::Error::HeaderName => Header, | ||||
|             httparse::Error::HeaderValue => Header, | ||||
|             httparse::Error::NewLine => Header, | ||||
|             httparse::Error::Status => Status, | ||||
|             httparse::Error::HeaderName | | ||||
|             httparse::Error::HeaderValue | | ||||
|             httparse::Error::NewLine | | ||||
|             httparse::Error::Token => Header, | ||||
|             httparse::Error::Status => Status, | ||||
|             httparse::Error::TooManyHeaders => TooLarge, | ||||
|             httparse::Error::Version => Version, | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user