QubesOS / qubes-gui-rust

Rust implementation of the Qubes OS GUI protocol
Apache License 2.0
7 stars 3 forks source link

Simplify enum_const! #4

Open meithecatte opened 2 years ago

meithecatte commented 2 years ago

Since the macro doesn't make the constants defined public, and only needs to use them internally, we don't need the user of the macro to make up separate names for the constants.

Also: perhaps a name like enum_try_from! would be more appropriate, considering how the role of the macro has changed?