Closed Xiretza closed 2 years ago
As I explained in https://github.com/serde-rs/bytes/issues/30#issuecomment-1139761834, I don't think this is necessary, since calling the serde::Deserializeimpl for
&'a [u8]should be equivalent to calling
serde_bytes::Bytes::deserialize`.
Please feel free to reopen if I missed anything though!
The Deserialize impl for
&[u8]
needs to forward to the specialized one forBytes
, not the other way around. Fixes #30.