HomePhabricator

rust-parsers: use in-place mutation instead of allocating a new `Vec`

Authored by Alphare.

Description

rust-parsers: use in-place mutation instead of allocating a new Vec

This is not done for the dirstate-tree feature, since it lacks iter_mut.

Differential Revision: https://phab.mercurial-scm.org/D9136