xso-proc: fix warnings when struct names end on _
This commit is contained in:
parent
76cd077490
commit
1265f4bb67
2 changed files with 28 additions and 2 deletions
|
|
@ -1,3 +1,19 @@
|
|||
Version NEXT:
|
||||
0000-00-00 Jonas Schäfer <jonas@zombofant.net>
|
||||
* Breaking
|
||||
- We now strip trailing underscores from identifiers before constructing
|
||||
any type names we declare from derive macros. That means that it is
|
||||
not possible to derive the traits on `Foo` and `Foo_` if both live
|
||||
in the same scope.
|
||||
|
||||
As a workaround, you can put either of these types into a `mod` and
|
||||
reexport them from the outer module. The types generated by the derive
|
||||
macro will then be scoped inside the `mod` and cannot conflict with
|
||||
the derived types on the other type.
|
||||
|
||||
All this is to avoid triggering the camel case lint on the types we
|
||||
generate.
|
||||
|
||||
Version 0.1.2:
|
||||
2024-07-26 Jonas Schäfer <jonas@zombofant.net>
|
||||
* Added
|
||||
|
|
|
|||
Loading…
Reference in a new issue