mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-26 17:02:24 +01:00
fix wrong value for enums
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user