In the current state, state names are formatted as _<fn name>_T<n>.
This results in compiler warnings when using the macro:
warning: type `_add_T0` should have an upper camel case name
--> src/main.rs:4:4
|
4 | fn add(x: i32, y: i32) -> i32 {
| ^^^ help: convert the identifier to upper camel case: `AddT0`
|
= note: `#[warn(non_camel_case_types)]` on by default
This change will name the types _T<n><fn name>. This way the name always starts with an uppercase letter and the warning disappears.
In the current state, state names are formatted as
_<fn name>_T<n>
.This results in compiler warnings when using the macro:
This change will name the types
_T<n><fn name>
. This way the name always starts with an uppercase letter and the warning disappears.