Skip to content

Replace BufMut::put with BufMut::put_slice in Writer impl#745

Merged
seanmonstar merged 1 commit intotokio-rs:masterfrom
paolobarbolini:writer-write-put-slice
Nov 1, 2024
Merged

Replace BufMut::put with BufMut::put_slice in Writer impl#745
seanmonstar merged 1 commit intotokio-rs:masterfrom
paolobarbolini:writer-write-put-slice

Conversation

@paolobarbolini
Copy link
Copy Markdown
Contributor

This makes the Writer::write implementation call BufMut::put_slice instead of going through BufMut::put, which has to handle non-contiguous Bufs.

@seanmonstar seanmonstar enabled auto-merge (squash) November 1, 2024 18:13
@seanmonstar seanmonstar merged commit 4cd8969 into tokio-rs:master Nov 1, 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.

2 participants