Skip to content

generate defmt::Format for enums #770

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

Merged
merged 4 commits into from
Nov 23, 2023
Merged

generate defmt::Format for enums #770

merged 4 commits into from
Nov 23, 2023

Conversation

burrbull
Copy link
Member

depends on #769

@burrbull burrbull requested a review from a team as a code owner November 23, 2023 16:08
@burrbull burrbull force-pushed the defmt branch 3 times, most recently from d35a951 to d0290bd Compare November 23, 2023 16:39
therealprof
therealprof previously approved these changes Nov 23, 2023
Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@Emilgardis
Copy link
Member

Emilgardis commented Nov 23, 2023

this depends on #769

should've read the pr message :)

@github-merge-queue github-merge-queue bot dismissed therealprof’s stale review November 23, 2023 19:17

The merge-base changed after approval.

@burrbull
Copy link
Member Author

rebased

)
.arg(
Arg::new("impl_defmt")
.long("impl-defmt")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not consistent with the other flags, unless we also bring in #771

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you suggest to support both - and _ for all flags, or only for old?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we go with #771, I think it makes sense to only alias snake case for old flags.
Thus, if we do include #771 then an alias on impl-defmt isn't needed, but maybe it's nice to include for familiarity.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added alias in last commit

@Emilgardis Emilgardis added this pull request to the merge queue Nov 23, 2023
Merged via the queue into master with commit 10ea58b Nov 23, 2023
@Emilgardis Emilgardis deleted the defmt branch November 23, 2023 20:12
@Emilgardis Emilgardis mentioned this pull request Nov 24, 2023
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.

3 participants