Skip to content

refactor(http1): resolve collapsible_match lint - #4178

Merged
dswij merged 1 commit into
hyperium:masterfrom
nakaryo716:lint-collapsible-match
Aug 31, 2026
Merged

refactor(http1): resolve collapsible_match lint#4178
dswij merged 1 commit into
hyperium:masterfrom
nakaryo716:lint-collapsible-match

Conversation

@nakaryo716

Copy link
Copy Markdown
Contributor

Part of #4071

Changes

  • Remove collapsible_match from Cargo.toml
  • Collapse the nested if in src/proto/h1/conn.rs into a match guard

Behavior is unchanged:
When http version is 1.1 and wants_keep_alive() is false, it falls through to _ => ().

Collapse the nested `if` inside the `Version::HTTP_11`
match arm into a match guard.

Refs hyperium#4071
@dswij
dswij merged commit 203e4c7 into hyperium:master Aug 31, 2026
23 checks passed
@nakaryo716
nakaryo716 deleted the lint-collapsible-match branch August 31, 2026 12:07
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