Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(client, server): Remove redundant http1, http2 feature gates #3091

Merged
merged 1 commit into from
Dec 21, 2022
Merged

style(client, server): Remove redundant http1, http2 feature gates #3091

merged 1 commit into from
Dec 21, 2022

Conversation

oliviacrain
Copy link
Contributor

Remove feature gates on methods where the parent module is already gated on said Cargo feature. These gates seem to be leftovers from the split of connection builders into per-http-version modules.

Since the client::conn::http1 and server::conn::http1 modules are gated on the http1 feature, we can remove http1 gates within those modules.

Likewise for client::conn::http2, server::conn::http2, and the http2 feature.

Remove feature gates on methods where the parent module is already gated on said Cargo feature. These
gates seem to be leftovers from the split of connection builders into per-http-version modules.

Since the `client::conn::http1` and `server::conn::http1` modules are gated on the `http1` feature, we
can remove `http1` gates within those modules.

Likewise for `client::conn::http2`, `server::conn::http2`, and the `http2` feature.
@seanmonstar seanmonstar merged commit 982e6a5 into hyperium:master Dec 21, 2022
@seanmonstar
Copy link
Member

Excellent, thank you!

@oliviacrain oliviacrain deleted the unnecessary-cfg branch December 22, 2022 03:38
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