mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 20:27:57 +00:00
Remove ref in top-level let pattern
Discouraged by Clippy.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user