summaryrefslogtreecommitdiff
path: root/bzipper_macros/src/impls/encode_enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bzipper_macros/src/impls/encode_enum.rs')
-rw-r--r--bzipper_macros/src/impls/encode_enum.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bzipper_macros/src/impls/encode_enum.rs b/bzipper_macros/src/impls/encode_enum.rs
index 37acd34..7ecf3d5 100644
--- a/bzipper_macros/src/impls/encode_enum.rs
+++ b/bzipper_macros/src/impls/encode_enum.rs
@@ -44,7 +44,7 @@ pub fn encode_enum(data: &DataEnum) -> TokenStream {
let mut field_captures = Vec::new();
for (index, field) in variant.fields.iter().enumerate() {
- let capture = Ident::new(&format!("v{index}"), Span::call_site());
+ let capture = Ident::new(&format!("value{index}"), Span::call_site());
field_names.push(&field.ident);
field_captures.push(capture);