You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which when used inside match blocks will generate:
warning: constant in pattern `SHType_Float3` should have an upper case name
--> src\widgets\var_util.rs:194:9
|
194 | SHType_Float3 => {
| ^^^^^^^^^^^^^ help: convert the identifier to upper case: `SHTYPE_FLOAT3`
I have tried to use ParseCallbacks with enum_variant_name to rename the enum, but it only works on the variant part, not the type (turns into SHType_FLOAT3, instead of SHTYPE_FLOAT3)
I also tried to use item_name in addition which kind of works except it renames the actual type also to SHTYPE, which I want to keep regular, I just want to rename the constants. Anything I'm missing in bindgen that can do this or is it just something that is not possible yet?
The text was updated successfully, but these errors were encountered:
I have an enum like this in C:
Turns into:
Which when used inside match blocks will generate:
I have tried to use ParseCallbacks with enum_variant_name to rename the enum, but it only works on the variant part, not the type (turns into SHType_FLOAT3, instead of SHTYPE_FLOAT3)
I also tried to use item_name in addition which kind of works except it renames the actual type also to SHTYPE, which I want to keep regular, I just want to rename the constants. Anything I'm missing in bindgen that can do this or is it just something that is not possible yet?
The text was updated successfully, but these errors were encountered: