The enumeration attribute uses {:?} to format the type path, resulting in enumeration = , code when debug output is elided.
I think this can be fixed by using enumeration = "{}" instead, but I'm not sure if there is the possibility of unprintable characters or quotes here. I don't think so as this is using idents? Also the code just below doesn't care about these theoretical edge cases and uses {} instead. So either it is safe to use {} (and {:?} only really adds the quotes) or both needs to be fixed.
The enumeration attribute uses
{:?}to format the type path, resulting inenumeration = ,code when debug output is elided.I think this can be fixed by using
enumeration = "{}"instead, but I'm not sure if there is the possibility of unprintable characters or quotes here. I don't think so as this is using idents? Also the code just below doesn't care about these theoretical edge cases and uses{}instead. So either it is safe to use{}(and{:?}only really adds the quotes) or both needs to be fixed.