mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
use reserve
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
parent
6ab90cd15d
commit
d4570e3175
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue