mirror of
https://gitlab.cern.ch/wotsubo/endcap-sl-software-ri-generator.git
synced 2025-06-08 05:55:44 +09:00
Merge branch 'add-derive-copy-to-enum' into 'main'
update(codegen_register): add derive(Copy) to register value enum See merge request wotsubo/endcap-sl-software-ri-generator!20
This commit is contained in:
commit
13525432df
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