Skip to content

rename Vtable::to_* -> Vtable::into_*#776

Merged
Darksonn merged 2 commits intotokio-rs:masterfrom
scottlamb:into-rename
Mar 7, 2025
Merged

rename Vtable::to_* -> Vtable::into_*#776
Darksonn merged 2 commits intotokio-rs:masterfrom
scottlamb:into-rename

Conversation

@scottlamb
Copy link
Copy Markdown
Contributor

The new name matches the Rust convention for methods that consume self, as referred to in the following clippy lint: https://rust-lang.github.io/rust-clippy/stable/index.html#wrong_self_convention This may help avoid bugs such as that fixed in #773.

The new name matches the Rust convention for methods that
consume `self`, as referred to in the following clippy lint:
<https://rust-lang.github.io/rust-clippy/stable/index.html#wrong_self_convention>
This may help avoid bugs such as that fixed in tokio-rs#773.
Copy link
Copy Markdown
Member

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thanks. One nit:

Comment thread src/bytes.rs Outdated
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
@Darksonn Darksonn enabled auto-merge (squash) March 7, 2025 13:42
@Darksonn Darksonn merged commit 141cbc2 into tokio-rs:master Mar 7, 2025
@scottlamb scottlamb deleted the into-rename branch March 7, 2025 13:59
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