Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncate tweaks #694

Merged
merged 2 commits into from Apr 17, 2024
Merged

Truncate tweaks #694

merged 2 commits into from Apr 17, 2024

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
15 checks passed
@braddunbar braddunbar deleted the truncate-tweaks branch April 21, 2024 17:37
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.

None yet

3 participants