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

Made SerdeDecoder attempt to allocate memory before complaining#475

Merged
VictorKoenders merged 1 commit intotrunkfrom
fix/474
Jan 17, 2022
Merged

Made SerdeDecoder attempt to allocate memory before complaining#475
VictorKoenders merged 1 commit intotrunkfrom
fix/474

Conversation

@VictorKoenders
Copy link
Contributor

With the alloc feature enabled, make sure that SerdeDecoder can decode deserialize_str and deserialize_bytes by falling back on the allocating counterparts.

Fixes #474

@VictorKoenders VictorKoenders requested a review from a user January 17, 2022 13:30
@VictorKoenders VictorKoenders merged commit 447c4c7 into trunk Jan 17, 2022
@VictorKoenders VictorKoenders deleted the fix/474 branch January 17, 2022 16:16
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.

CannotBorrowOwnedData on decode_from_slice for some types that implement Serialize/Deserialize - bincode::serde

1 participant