Closed hcpl closed 7 years ago
Thanks! This was an oversight when updating to Serde 1.0.
I tweaked the error message in 42c1f08f70b1cb8608b2330dffa1674e2c2792be to be consistent with &str. Otherwise formats that do not support borrowing a byte array will produce unhelpful messages that say unexpected type byte array, expected byte array.
Published in serde_bytes 0.10.2.
Thanks for the review @oli-obk!
Thanks for the quick release!
The
Bytes
instance borrows directly from the input source and as such provides a zero-copy interface.