refactor(lib): replace Vec::set_len(0) with clear
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							069a32b1ac
						
					
				
				
					commit
					c837fb9c29
				
			| @@ -179,7 +179,7 @@ mod tests { | ||||
|             let chunk = ::Chunk::from(s); | ||||
|             dst.put(chunk); | ||||
|             ::test::black_box(&dst); | ||||
|             unsafe { dst.set_len(0); } | ||||
|             dst.clear(); | ||||
|         }) | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user