Avoid unnecessary cloned.

This commit is contained in:
Nicholas Nethercote 2024-08-20 12:25:31 +10:00
parent deab741ab4
commit 312ecdb2ed

View File

@ -363,7 +363,7 @@ impl<'a> Parser<'a> {
[parser_replacements_start..parser_replacements_end]
.iter()
.cloned()
.chain(inner_attr_parser_replacements.iter().cloned())
.chain(inner_attr_parser_replacements.into_iter())
.map(|(parser_range, data)| {
(NodeRange::new(parser_range, collect_pos.start_pos), data)
})