Skip to content

chore: improve bytes maintenance path#827

Merged
seanmonstar merged 1 commit into
tokio-rs:masterfrom
vip892766gma:maint/20260518192232
May 19, 2026
Merged

chore: improve bytes maintenance path#827
seanmonstar merged 1 commit into
tokio-rs:masterfrom
vip892766gma:maint/20260518192232

Conversation

@vip892766gma
Copy link
Copy Markdown
Contributor

Summary:

  • Audit the BytesMut/Bytes unsafe blocks for missing or imprecise SAFETY comments and add a small targeted test (or doc-test) covering a boundary condition such as split_to/split_off at index 0 and at len(), and verify capacity/refcount invariants — a small code-level patch (test + a SAFETY comment clarification) with no API change.
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

Copy link
Copy Markdown
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@seanmonstar seanmonstar merged commit 2256e6d into tokio-rs:master May 19, 2026
18 checks passed
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.

2 participants