mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-06-29 16:19:26 +09:00
fix(generator): avoid constant name duplication of mask and value
This commit is contained in:
parent
fa777f43fb
commit
5c7aa91d56
2 changed files with 5 additions and 1 deletions
|
@ -322,7 +322,7 @@ fn generate_single_ux_field(
|
|||
|
||||
fn custom_value_const_name(field_name: &Ident, value_name: &str) -> Ident {
|
||||
util::parse_to_ident(&format!(
|
||||
"{}_{}",
|
||||
"{}_VAL_{}",
|
||||
field_name.to_string().to_shouty_snake_case(),
|
||||
value_name.to_shouty_snake_case()
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue