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
				
			| @@ -231,7 +231,7 @@ impl ::std::ops::Index<usize> for Raw { | ||||
|  | ||||
| macro_rules! literals { | ||||
|     ($($len:expr => $($value:expr),+;)+) => ( | ||||
|         fn maybe_literal<'a>(s: Cow<'a, [u8]>) -> Bytes { | ||||
|         fn maybe_literal(s: Cow<[u8]>) -> Bytes { | ||||
|             match s.len() { | ||||
|                 $($len => { | ||||
|                     $( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user