We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsafe_skip_trace
1 parent fbc3742 commit 65945e7Copy full SHA for 65945e7
libs/derive/src/derive.rs
@@ -231,9 +231,9 @@ impl TraceVariant {
231
match self.fields.style {
232
Style::Unit => (quote!(), FieldAccess::None),
233
Style::Tuple => {
234
- let prefix: Ident = parse_quote!(member);
+ let prefix: Ident = parse_quote!(_member);
235
let destructure = self.fields.iter().enumerate().map(|(idx, field)| {
236
- let name = format_ident!("member{}", span = field.ty.span(), idx);
+ let name = format_ident!("_member{}", span = field.ty.span(), idx);
237
quote!(ref #mutability #name)
238
});
239
(quote!((#(#destructure),*)), FieldAccess::Variable {
0 commit comments