mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-06-07 21:45:44 +09:00
update(codegen_register): add derive(Copy) to register value enum
It must be unit only enum, so Copy isn't so heavy operation
This commit is contained in:
parent
1b0be30908
commit
7208e5cebd
1 changed files with 1 additions and 0 deletions
|
@ -360,6 +360,7 @@ fn generate_custom_values_const_enumdef(
|
|||
util::parse_to_ident(&field_name.to_string().to_upper_camel_case()).unwrap();
|
||||
|
||||
quote! {
|
||||
#[derive(Clone, Copy)]
|
||||
pub enum #value_enum_name {
|
||||
#(#variants),*
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue