serde-rs / bytes

Wrapper types to enable optimized handling of &[u8] and Vec<u8>
Apache License 2.0
317 stars 37 forks source link

Bytes deserialization cleanup #32

Closed Xiretza closed 2 years ago

Xiretza commented 2 years ago

This is a followup to #30. Since vanilla serde already specializes the deserialization of &[u8], there is no work to be done here by this crate. This PR removes the BytesVisitor (which is just a copy of the one in serde) and adds a couple comments to hopefully make the situation clearer for future readers.