Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.7.0 (July 31, 2024)
Added
Bytes
toBytesMut
(Add zero-copy make_mut #695, Change Bytes::make_mut to impl From<Bytes> for BytesMut #710)Documented
BytesMut::zeroed
works (Clarify howBytesMut::zeroed
works and advantages to manual impl #714)Buf::chunk
(docs: clarify the behavior ofBuf::chunk
#717)Changed
BytesMut::truncate
<BytesMut as Buf>::advance
impl (Reuse capacity when possible in<BytesMut as Buf>::advance
impl #698)must_use
suggestion ofBytesMut::split
(Improve BytesMut::split suggestion #699)Internal changes
ManuallyDrop
instead ofmem::forget
(Bytes: Use ManuallyDrop instead of mem::forget #678)len
inBytesMut::reserve
(Don't setlen
inBytesMut::reserve
#682)Bytes::copy_to_bytes
(perf: improve Bytes::copy_to_bytes #688)BytesMut::truncate
(Truncate tweaks #694)BytesMut::resize
(Resize refactor #696)Bytes::split_to
,Bytes::split_off
(Bytes::split_to - check fast path first #689, Bytes::split_off - check fast path first #693)offset_from
in more places (Offset from #705)IntoIter
(Fix iter tests to use the actual bytesIntoIter
instead of std #707)