Remove ref in top-level let pattern

Discouraged by Clippy.
This commit is contained in:
David Tolnay 2017-01-11 11:12:53 -08:00
parent 8242c64152
commit 3aaf29c846
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -642,7 +642,7 @@ fn deserialize_field_visitor(
is_variant: bool,
) -> Tokens {
// Create the field names for the fields.
let ref field_idents: Vec<_> = (0 .. field_names.len())
let field_idents: &Vec<_> = &(0 .. field_names.len())
.map(|i| aster::id(format!("__field{}", i)))
.collect();