Update Rust crate bytes to v1.7.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
bytes | dependencies | minor |
1.6.1 -> 1.7.0
|
Release Notes
tokio-rs/bytes (bytes)
v1.7.0
Added
- Add conversion from
Bytes
toBytesMut
(#695, #710) - Add reclaim method without additional allocation (#686)
Documented
Changed
- Change length condition of
BytesMut::truncate
- Reuse capacity when possible in
<BytesMut as Buf>::advance
impl (#698) - Improve
must_use
suggestion ofBytesMut::split
(#699)
Internal changes
- Use
ManuallyDrop
instead ofmem::forget
(#678) - Don't set
len
inBytesMut::reserve
(#682) - Optimize
Bytes::copy_to_bytes
(#688) - Refactor
BytesMut::truncate
(#694) - Refactor
BytesMut::resize
(#696) - Reorder assertion in
Bytes::split_to
,Bytes::split_off
(#689, #693) - Use
offset_from
in more places (#705) - Correct the wrong usage of
IntoIter
(#707)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.