diff options
-rw-r--r-- | tvix/eval/src/value/json.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/value/json.rs b/tvix/eval/src/value/json.rs index 1ef3f9911def..807dc55f97cc 100644 --- a/tvix/eval/src/value/json.rs +++ b/tvix/eval/src/value/json.rs @@ -40,7 +40,7 @@ impl Value { } Value::List(l) => { - let mut out = vec![]; + let mut out = Vec::with_capacity(l.len()); for val in l.into_iter() { let (json_item, ctx) = Box::pin(val.into_contextful_json(co)).await?; |