use reserve

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
Folkert de Vries 2021-07-22 21:14:46 +02:00 committed by GitHub
parent 6ab90cd15d
commit d4570e3175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -900,6 +900,7 @@ fn unify_shared_tags(
match other_tags {
OtherTags::Empty => {}
OtherTags::Union { tags1, tags2 } => {
new_tags.reserve(tags1.len() + tags2.len());
new_tags.extend(tags1);
new_tags.extend(tags2);
}