Skip to content
Myr

Fix toplevel_ref_arg lint

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent adb1c95 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:serde_derive/src/pretend.rs+1 added-1 removed
105 unmodified lines
106 let turbofish = ty_generics.as_turbofish();107108 let cases = variants.iter().map(|variant| {109 let variant_ident = variant.ident;110 let ref placeholders = (0..variant.fields.len())110 let placeholders = &(0..variant.fields.len())111 .map(|i| Ident::new(&format!("__v{}", i), Span::call_site()))112 .collect::<Vec<_>>();113114 let pat = match variant.style {
27 unmodified lines