allocate arg vec with capacity during eval

This commit is contained in:
connorskees 2023-01-08 22:43:54 +00:00
parent 1052005ab6
commit 68b1ee0d1d

View File

@ -1980,7 +1980,7 @@ impl<'a> Visitor<'a> {
arguments: ArgumentInvocation,
span: Span,
) -> SassResult<ArgumentResult> {
let mut positional = Vec::new();
let mut positional = Vec::with_capacity(arguments.positional.len());
for expr in arguments.positional {
let val = self.visit_expr(expr)?;