Closed braddunbar closed 4 months ago
This is a quick tweak to BytesMut::truncate to avoid calling BytesMut::set_len unnecessarily and to explicitly state assumptions of safety.
BytesMut::truncate
BytesMut::set_len
This is a quick tweak to
BytesMut::truncate
to avoid callingBytesMut::set_len
unnecessarily and to explicitly state assumptions of safety.