Skip to content

Conversation

@braddunbar
Copy link
Contributor

This is a quick tweak to BytesMut::truncate to avoid calling BytesMut::set_len unnecessarily and to explicitly state assumptions of safety.

@Darksonn Darksonn merged commit 4e2c9c0 into tokio-rs:master Apr 17, 2024
@braddunbar braddunbar deleted the truncate-tweaks branch April 21, 2024 17:37
@mox692 mox692 mentioned this pull request Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants