style: replace single-character lifetime names with descriptive names by dox4 · Pull Request #4173 · hyperium/hyper · GitHub
Skip to content

style: replace single-character lifetime names with descriptive names - #4173

Merged
dswij merged 4 commits into
hyperium:masterfrom
dox4:style/descriptive-lifetime-names
Aug 29, 2026
Merged

style: replace single-character lifetime names with descriptive names#4173
dswij merged 4 commits into
hyperium:masterfrom
dox4:style/descriptive-lifetime-names

Conversation

@dox4

@dox4 dox4 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Removes the single_char_lifetime_names allow lint from the strict clippy config and replaces all single-character lifetime names with descriptive names.

Part of #4071.

@cratelyn cratelyn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thank you! i have one small nit about one of the lifetime names used here.

Comment thread src/client/dispatch.rs Outdated
@dox4
dox4 force-pushed the style/descriptive-lifetime-names branch from fd72939 to 36e2d78 Compare August 28, 2026 17:47
@dox4

dox4 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

@dswij
dswij merged commit 7611e61 into hyperium:master Aug 29, 2026
23 checks passed
@dox4
dox4 deleted the style/descriptive-lifetime-names branch August 30, 2026 15:17
snowyukitty added a commit to snowyukitty/hyper that referenced this pull request Sep 3, 2026
Upstream hyperium#4173 restyled the `chunks_vectored` overrides this branch removes,
so all four conflicts were the same shape. Kept the `VectoredBuf` trait and
its `chunks_vectored_prefix`, and adopted hyperium#4173's convention by renaming the
`'t` lifetime to `'data` in the code this branch adds.
snowyukitty added a commit to snowyukitty/hyper that referenced this pull request Sep 3, 2026
Upstream hyperium#4173 restyled the `chunks_vectored` overrides this branch removes,
so all four conflicts were the same shape. Kept the `VectoredBuf` trait and
its `chunks_vectored_prefix`, and adopted hyperium#4173's convention by renaming the
`'t` lifetime to `'data` in the code this branch adds.
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