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.6.0 (March 22, 2024)
Added
Bytes::is_unique
(addBytes::is_unique
#643)Documented
Internal changes
UninitSlice::as_uninit_slice_mut()
logic (uninit_slice: simplify as_uninit_slice_mut() logic #644)self.
instead ofSelf::
(Self:: -> self. #642)BytesMut
: Assert alignment ofShared
(BytesMut: Assert alignment of Shared #652)From<Vec>
(Mut parameter #667)sub
instead ofoffset
(Use sub instead of offset #668)set_vec_pos
does not need a second parameter (set_vec_pos does not need a second parameter #672)get_vec_pos
: use&self
instead of&mut self
(get_vec_pos: use &self instead of &mut self #670)split_at
/split_to
(Refactor split_at/split_to #663)Iterator
from the prelude (Use Iterator from the prelude #673)copy_to_bytes
: Add panic section to docs (copy_to_bytes: Add panic section to docs #676)ManuallyDrop
instead ofmem::forget
(Use ManuallyDrop instead of mem::forget #675)