fix wrong value for enums

This commit is contained in:
OMGeeky
2024-05-13 18:29:36 +02:00
parent 41049ede1a
commit e8e1722294

View File

@@ -101,7 +101,7 @@ impl AsRef<str> for ${enum_type} {
fn as_ref(&self) -> &str {
match *self {
% for variant in e.get('enum'):
${enum_type}::${to_enum_variant_name(variant)} => "${variant_name}",
${enum_type}::${to_enum_variant_name(variant)} => "${variant}",
% endfor
}
}