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

Add conversions from smithy StatusCode to http StatusCode. #3637

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

khuey
Copy link
Contributor

@khuey khuey commented May 9, 2024

Motivation and Context

Making this conversion bidirectional is helpful.

Description

Add impl From<StatusCode> for httpN::StatusCode that does the obvious thing.

Testing

I'm using these conversions in my own project. As all three crates have identical constraints on the status code value the changes are trivially correct.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

Not clear to me what if anything to do here.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@khuey khuey requested a review from a team as a code owner May 9, 2024 18:14
@aajtodd
Copy link
Contributor

aajtodd commented May 28, 2024

Thanks for the contribution!

You'll need to do a few things to be able to have this reviewed and shipped:

  1. refresh the branch
  2. add a changelog entry to CHANGELOG.next.toml
  3. Bump the patch version of aws-smithy-runtime-api

@khuey khuey requested a review from a team as a code owner May 31, 2024 20:34
@khuey
Copy link
Contributor Author

khuey commented May 31, 2024

It looks like #3664 bumped the patch version on the crate so there's no need for me to bump it again if they ship together.

@aajtodd
Copy link
Contributor

aajtodd commented Jun 4, 2024

You'll need to refresh once more (and bump the crate patch version now as we released yesterday). The CI failures in this PR are due to a transitive dependency issue that was fixed yesterday.

@khuey
Copy link
Contributor Author

khuey commented Jun 4, 2024

Alright, done.

@khuey
Copy link
Contributor Author

khuey commented Jun 6, 2024

Rebased again

@aajtodd aajtodd added this pull request to the merge queue Jun 6, 2024
Merged via the queue into smithy-lang:main with commit c7b3667 Jun 6, 2024
41 of 42 checks passed
@khuey
Copy link
Contributor Author

khuey commented Jun 6, 2024

Thank you.

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