Closed zyxw59 closed 1 month ago
Thanks. Is there any chance we could have a test that would have caught this?
Thank you for fixing this issue!
I'm updating this PR to merge it directly onto the 1.6.0 tag so that I can make a 1.6.1 release with just this change.
The
is_unique
entry in the vtable forBytes
created from a sharedBytesMut
just called theshared_is_unique
function from thebytes
module. However, that function dereferences thedata
argument ascrate::bytes::Shared
, but the actual underlying type iscrate::bytes_mut::Shared
.