Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

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

Merged
VictorKoenders merged 2 commits intobincode-org:trunkfrom
songzhi:trunk
Dec 10, 2021
Merged

Impl BorrowDecode for Option<&[u8]> and Option<&str>#446
VictorKoenders merged 2 commits intobincode-org:trunkfrom
songzhi:trunk

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants