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

Impl BorrowDecode for Option<&[u8]> and Option<&str> #446

Merged
merged 2 commits into from Dec 10, 2021

Conversation

songzhi
Copy link
Contributor

@songzhi songzhi commented Dec 10, 2021

Since those two types are encodable, implements BorrowDecode for them is nature.

@VictorKoenders
Copy link
Contributor

This makes a lot of sense, we're only implementing Decode for Option<T> where T: Decode. I tried implementing it for Option<T> where T: BorrowDecode but that breaks a lot of things.

Clippy has some new warnings, they will be fixed in #447. After that is merged can you rebase? PR looks good to me

@VictorKoenders VictorKoenders merged commit 882e227 into bincode-org:trunk Dec 10, 2021
VictorKoenders added a commit that referenced this pull request Dec 11, 2021
VictorKoenders added a commit that referenced this pull request Dec 11, 2021
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.

None yet

2 participants