diff options
author | 2024-05-28 10:14:02 +0200 | |
---|---|---|
committer | 2024-05-28 10:14:02 +0200 | |
commit | fa1daac3ae1dcb07dffe3a41a041dffd6edf177b (patch) | |
tree | 5f35204d0b1e5d89e3c8fa53c59c5c363694b58f /tests/test_bytes_vec_alloc.rs | |
parent | caf520ac7f2c466d26bd88eca33ddc53c408e17e (diff) | |
download | bytes-master.tar.gz bytes-master.tar.zst bytes-master.zip |
<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