Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Buf for std::io::Take<&[u8]>. #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smarnach
Copy link

I stumbled upon rust-lang/rust#27269 and noticed that it is fixed now, so I added an implementation. The implementation only covers Take<&[u8]>, but I can't think of any more general type this could be implemented for.

@smarnach smarnach force-pushed the smarnach/impl-buf-for-take branch from 1434b2f to 3e0541d Compare October 4, 2018 09:16
@smarnach
Copy link
Author

smarnach commented Oct 4, 2018

The build fails for Rust 1.15, which does not yet have the new methods. So if this version of Rust still needs to be supported, we need to protect this by a feature flag, which probably isn't worth it.

@carllerche
Copy link
Member

I will track this for the next breaking change 👍 Thanks.

@carllerche carllerche added this to the v0.5 milestone Oct 4, 2018
@smarnach smarnach force-pushed the smarnach/impl-buf-for-take branch from 3e0541d to a1a7768 Compare December 6, 2019 13:16
@smarnach smarnach changed the base branch from v0.4.x to master December 6, 2019 13:17
@carllerche carllerche removed this from the v0.5 milestone Dec 15, 2020
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