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

docs(client, body): fix doctests failing when certain features are disabled #2688

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

whentze
Copy link
Contributor

@whentze whentze commented Nov 6, 2021

The first commit fixes #2687, the second one fixes a very similar issue regarding a client doctest.

The doctest uses `hyper::Client`, but that is not available unless these features are enabled.
This commit adds an attribute to check for those and allows `cargo test` with no arguments to pass again.

fixes hyperium#2687.
when testing my fix for hyperium#2687, I noticed that this doctest has the same issue,
so here's another fix.
@whentze
Copy link
Contributor Author

whentze commented Nov 6, 2021

Huh, gitcop complained about the commit message subject being too long so I reworded it, but it looks like it's not re-running the check for some reason 😐

@seanmonstar
Copy link
Member

It's OK, gitcop isn't marked required. It's just there as a guide to either nudge people to make a commit message that follows the pattern, or to me to clean up the message when squashing.

@seanmonstar seanmonstar merged commit 913be88 into hyperium:master Nov 8, 2021
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.

body::to_bytes doctest fails with default feature set
2 participants