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

Status should take TryInto<StatusCode> #157

Merged
merged 6 commits into from
May 29, 2020
Merged

Status should take TryInto<StatusCode> #157

merged 6 commits into from
May 29, 2020

Conversation

zeroed
Copy link
Contributor

@zeroed zeroed commented May 25, 2020

Change the trait bound of S in the Status trait to accept a TryInto<StatusCode>; this would allow the Status trait to accept a wider range of input.

Uses the same approach as Response::new.

Refs: #155

Draft PR until the checklist is complete:

  • feature implementation.
  • tests added.
  • documentation updated.

zeroed added 6 commits May 25, 2020 09:05
Change the trait bound of S to accept a TryInto<StatusCode>; this
would allow the Status trait to accept a wider range of input.

Change the trait bound for 'status'.

Refs: #155
Change the trait bound of S to accept a TryInto<StatusCode>; this
would allow the Status trait to accept a wider range of input.

Change the trait bound for 'with_status'.

Refs: #155
@zeroed zeroed marked this pull request as ready for review May 25, 2020 19:26
@zeroed
Copy link
Contributor Author

zeroed commented May 25, 2020

The commit a2e58a1 contains only the linting from rust fmt. It can be kept here, moved in a different MR or simply dropped; I would leave this to the judgement of the maintainers.

Thanks

@yoshuawuyts yoshuawuyts merged commit 08ee3d2 into http-rs:master May 29, 2020
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