aboutsummaryrefslogtreecommitdiff
path: root/tests/test_bytes_vec_alloc.rs
diff options
context:
space:
mode:
authorGravatar Anthony Ramine <123095+nox@users.noreply.github.com> 2024-05-28 10:14:02 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-28 10:14:02 +0200
commitfa1daac3ae1dcb07dffe3a41a041dffd6edf177b (patch)
tree5f35204d0b1e5d89e3c8fa53c59c5c363694b58f /tests/test_bytes_vec_alloc.rs
parentcaf520ac7f2c466d26bd88eca33ddc53c408e17e (diff)
downloadbytes-master.tar.gz
bytes-master.tar.zst
bytes-master.zip
Change Bytes::make_mut to impl From<Bytes> for BytesMut (closes #709) (#710)HEADmaster
<Arc<T>>::make_mut returns a &mut T, such an API is doable for Bytes too and thus we should reserve Bytes::make_mut for that. Furthermore, it would be helpful to use From<Bytes> as a trait bound in some cases with other traits such as Hyper's body trait, where Hyper gives you Bytes values. Finally, making it impl From<Bytes> for BytesMut means the API is more easily discoverable as it appears on both Bytes and BytesMut.
Diffstat (limited to 'tests/test_bytes_vec_alloc.rs')
0 files changed, 0 insertions, 0 deletions