-
Notifications
You must be signed in to change notification settings - Fork 190
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
impl Display
for generated (string) enums
#3336
Labels
good first issue
Good for newcomers
Comments
If you'd like to take on this issue, the relevant code appears to be here: Line 82 in fe36727
|
Will send a PR. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Feb 7, 2024
## Motivation and Context This change address the [#3335](#3336) ## Description Added Display trait to the Enum. ## Testing Updated the [ClientEnumGeneratorTest.kt](https://github.com/smithy-lang/smithy-rs/blob/main/codegen-client/src/test/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/ClientEnumGeneratorTest.kt) which test the ```impl Display``` for the enums. ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [x] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ Co-authored-by: Prince Kumar Maurya <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as_str
exists, but we might as wellimpl Display
with identical behavior since these are thin string wrappersThe text was updated successfully, but these errors were encountered: