Skip to content

Commit 65945e7

Browse files
committed
Avoid unused var warning for unsafe_skip_trace in enums
1 parent fbc3742 commit 65945e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/derive/src/derive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,9 @@ impl TraceVariant {
231231
match self.fields.style {
232232
Style::Unit => (quote!(), FieldAccess::None),
233233
Style::Tuple => {
234-
let prefix: Ident = parse_quote!(member);
234+
let prefix: Ident = parse_quote!(_member);
235235
let destructure = self.fields.iter().enumerate().map(|(idx, field)| {
236-
let name = format_ident!("member{}", span = field.ty.span(), idx);
236+
let name = format_ident!("_member{}", span = field.ty.span(), idx);
237237
quote!(ref #mutability #name)
238238
});
239239
(quote!((#(#destructure),*)), FieldAccess::Variable {

0 commit comments

Comments
 (0)