Fix toplevel_ref_arg lint

This commit is contained in:
David Tolnay 2018-05-05 00:39:26 -07:00
parent adb1c9540d
commit 93bddb361e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -107,7 +107,7 @@ fn pretend_variants_used(cont: &Container) -> Tokens {
let cases = variants.iter().map(|variant| {
let variant_ident = variant.ident;
let ref placeholders = (0..variant.fields.len())
let placeholders = &(0..variant.fields.len())
.map(|i| Ident::new(&format!("__v{}", i), Span::call_site()))
.collect::<Vec<_>>();