Skip to content

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Aug 5, 2025

Problem:

  • Runtime enumerations cannot in general be formatted by the fmt formatter, but work fine with the binary formatter.

Solution:

  • Decay enumeration values to their underlying_type iff no format_as function is provided for them.

@elbeno elbeno force-pushed the fmt-enum-formatting branch from 1ca5f87 to efed86c Compare August 5, 2025 16:48
@elbeno elbeno changed the title :soarkles: Allow fmt formatter to format runtime enum values ✨ Allow fmt formatter to format runtime enum values Aug 5, 2025
Problem:
- Runtime enumerations cannot in general be formatted by the fmt formatter, but
  work fine with the binary formatter.

Solution:
- Decay enumeration values to their `underlying_type` iff no `format_as`
  function is provided for them.
@elbeno elbeno force-pushed the fmt-enum-formatting branch from efed86c to 5c79744 Compare August 5, 2025 16:52
Copy link
Contributor

@mjcaisse-intel mjcaisse-intel left a comment

Choose a reason for hiding this comment

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

woot!

@elbeno elbeno merged commit 49ff8ed into intel:main Aug 7, 2025
27 checks passed
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