Skip to content

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

Merged
seanmonstar merged 1 commit intotokio-rs:masterfrom
paolobarbolini:really-test-iter
May 19, 2024
Merged

Fix iter tests to use the actual bytes IntoIter instead of std#707
seanmonstar merged 1 commit intotokio-rs:masterfrom
paolobarbolini:really-test-iter

Conversation

@paolobarbolini
Copy link
Copy Markdown
Contributor

@paolobarbolini paolobarbolini commented May 19, 2024

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.

Footnotes

  1. https://docs.rs/bytes/0.4.12/bytes/buf/trait.Buf.html#method.iter

@seanmonstar seanmonstar merged commit caf520a into tokio-rs:master May 19, 2024
@mox692 mox692 mentioned this pull request Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants