Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change to make variables always follow rust conventions.
This avoids a number of problems:
non_snake_cased vars (see Enum members need to be PascalCased #69)
And as a result we get to remove two options that generally had a
"correct choice"
--rust-case
or-z
(now implied default) so option removed--hide-inner-attr
or-i
only mattered if you didn't use-z
so removedThus the generated case for crds now always follow the standard rust convention:
struct
members usesnake_case
enum
members usePascalCase
(and this is a safe rename because we knew the original name so we just emit a serde(rename) attr to ensure serialization uses the correct keys)