tokio-rs / bytes

Utilities for working with bytes
MIT License
1.86k stars 278 forks source link

Fix iter tests to use the actual bytes `IntoIter` instead of std #707

Closed paolobarbolini closed 3 months ago

paolobarbolini commented 3 months ago

While looking at the code I've realized the iterator tests were using core::slice::Iter instead of bytes::buf::IntoIter. This mistake seems to be an artifact of bytes 0.4 ^1. This fixes it.